TECA
teca_descriptive_statistics.h
1 #ifndef teca_descriptive_statistics_h
2 #define teca_descriptive_statistics_h
3 
4 #include "teca_shared_object.h"
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
7 
8 #include <string>
9 #include <vector>
10 
11 TECA_SHARED_OBJECT_FORWARD_DECL(teca_descriptive_statistics)
12 
13 
19 {
20 public:
21  TECA_ALGORITHM_STATIC_NEW(teca_descriptive_statistics)
22  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_descriptive_statistics)
23  TECA_ALGORITHM_CLASS_NAME(teca_descriptive_statistics)
25 
26  // report/initialize to/from Boost program options
27  // objects.
28  TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
29  TECA_SET_ALGORITHM_PROPERTIES()
30 
31  // set/get the list of arrays that are needed to produce
32  // the derived quantity
33  TECA_ALGORITHM_VECTOR_PROPERTY(std::string, dependent_variable)
34 
35 protected:
37 
38 private:
39  std::vector<teca_metadata> get_upstream_request(
40  unsigned int port, const std::vector<teca_metadata> &input_md,
41  const teca_metadata &request) override;
42 
43  const_p_teca_dataset execute(
44  unsigned int port, const std::vector<const_p_teca_dataset> &input_data,
45  const teca_metadata &request) override;
46 
47  void get_dependent_variables(const teca_metadata &request,
48  std::vector<std::string> &dep_vars);
49 private:
50  std::vector<std::string> dependent_variables;
51 };
52 
53 #endif
teca_metadata
Definition: teca_metadata.h:17
teca_descriptive_statistics
compute descriptive statistics over a set of arrays.
Definition: teca_descriptive_statistics.h:19
teca_algorithm
Definition: teca_algorithm.h:25