rdbstats  2.0.9
RdbStatsAve.h
1 #ifndef RdbStatsAve_H
2 #define RdbStatsAve_H
3 
4 /* --8<--8<--8<--8<--
5  *
6  * Copyright (C) 2006 Smithsonian Astrophysical Observatory
7  *
8  * This file is part of rdbstats
9  *
10  * rdbstats is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * rdbstats is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the
22  * Free Software Foundation, Inc.
23  * 51 Franklin Street, Fifth Floor
24  * Boston, MA 02110-1301, USA
25  *
26  * -->8-->8-->8-->8-- */
27 
28 #include "RdbStats.h"
29 
33 class RdbStatsAve : public RdbStats {
34 
35 public:
36 
37  virtual ~RdbStatsAve( ) { }
38 
39  RdbStatsAve( RDB& irdbtable, const std::string& name );
40 
42  virtual int calculate_statistics( );
43 
44 };
45 
46 #endif
The base class to calculate : average, maximum, minimum, num, stddev and sum.
Definition: RdbStats.h:61
virtual int calculate_statistics()
Perform the final statistic for the set.
Definition: RdbStatsAve.cc:32
To normalize the results wrt to the average.
Definition: RdbStatsAve.h:33