1 #ifndef StatCumProbDistDynCalc_h
2 #define StatCumProbDistDynCalc_h
32 class QXmlStreamWriter;
36 class XmlStackedHandlerReader;
100 double value(
double cumProb);
104 void save(QXmlStreamWriter &stream,
const Project *project)
const;
106 QDataStream &
write(QDataStream &stream)
const;
107 QDataStream &
read(QDataStream &stream);
121 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
122 const QString &qName,
const QXmlAttributes &atts);
123 virtual bool characters(
const QString &ch);
124 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
125 const QString &qName);
128 Q_DISABLE_COPY(XmlHandler);
132 QString m_xmlHandlerCharacters;
138 unsigned int m_numberCells;
141 unsigned int m_numberQuantiles;
145 unsigned int m_numberObservations;
double max()
Returns the maximum observation so far included in the dynamic calculation.
Definition: StatCumProbDistDynCalc.cpp:166
The main project for cnetsuite.
Definition: Project.h:105
void setQuantiles(unsigned int nodes)
Definition: StatCumProbDistDynCalc.cpp:128
QDataStream & write(QDataStream &stream) const
Definition: StatCumProbDistDynCalc.cpp:619
StatCumProbDistDynCalc(unsigned int nodes=20, QObject *parent=0)
Construtor sets up the class to start recieving data.
Definition: StatCumProbDistDynCalc.cpp:50
void validate()
Definition: StatCumProbDistDynCalc.cpp:667
double value(double cumProb)
Provides the value of the variable that has the given cumulative probility (according the current est...
Definition: StatCumProbDistDynCalc.cpp:205
~StatCumProbDistDynCalc()
Destroys StatCumProbDistDynCalc object.
Definition: StatCumProbDistDynCalc.cpp:83
This class is used to approximate cumulative probibility distributions of a stream of observations wi...
Definition: StatCumProbDistDynCalc.h:79
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
Definition: CSVReader.cpp:463
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:47
QDataStream & read(QDataStream &stream)
Definition: StatCumProbDistDynCalc.cpp:633
void save(QXmlStreamWriter &stream, const Project *project) const
Definition: StatCumProbDistDynCalc.cpp:514
void initialize()
Inializer, resets the class to start its dynamic calculation anew.
Definition: StatCumProbDistDynCalc.cpp:117
void addObs(double obs)
Values for the estimated quantile positions are update as observations are added. ...
Definition: StatCumProbDistDynCalc.cpp:417
double min()
Returns the maximum observation so far included in the dynamic calculation.
Definition: StatCumProbDistDynCalc.cpp:183
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition: Hillshade.cpp:308
double cumProb(double value)
Provides the cumulative probility, that is, the proportion of the distribution that is less than or e...
Definition: StatCumProbDistDynCalc.cpp:322
his enables stack-based XML parsing of XML files.
Definition: XmlStackedHandlerReader.h:26
StatCumProbDistDynCalc & operator=(const StatCumProbDistDynCalc &other)
Definition: StatCumProbDistDynCalc.cpp:90