38#include <drain/util/Histogram.h>
39#include <drain/prog/Command.h>
61 drain::Histogram::vect_t::size_type index;
63 drain::Histogram::count_t count;
78 std::string attribute;
86 getParameters().link(
"filename", filename=
"",
"<filename>.txt|-");
87 getParameters().link(
"attribute", attribute=
"histogram",
"<attribute_key>");
88 getParameters().link(
"commentChar", commentChar,
"Prefix for header and postfix for labels");
96 typedef std::map<int, std::string> legend;
103 void writeHistogram(
const drain::Histogram & histogram,
const std::string & filename,
const legend &
leg = legend())
const;
105 std::string commentChar =
"#";
110 void setSpecialEntry(legend &
leg,
double value,
const std::string & label)
const;
Simple implementation of Command: adds name , description and parameters .
Definition Command.h:461
virtual const drain::ReferenceMap & getParameters() const
Returns the command parameters.
Definition Command.h:396
Something which has a name, a description and possibly some parameters of varying type.
Definition BeanLike.h:58
const map_t & getParameters() const
Returns the parameter map (const access).
Definition BeanLike.h:116
Class for computing a histogram and some statistics: average, min, max, mean, std....
Definition Histogram.h:60
void copyStruct(const ReferenceMap &m, const T &src, T &dst, extLinkPolicy policy=RESERVE)
Experimental. Copies references and values of a structure to another.
Definition ReferenceMap.h:412
TODO: generalize to array outfile.
Definition file-hist.h:70
void exec() const
Run the command with current parameter values.
Definition file-hist.cpp:55
A map of radar data, indexed by quantity code (DBZH, VRAD, etc).
Definition Data.h:1293
Definition AltitudeOp.cpp:42
Definition file-hist.h:48