|
Isis 3 Programmer Reference
|
1 #ifndef StatCumProbDistDynCalc_h
2 #define StatCumProbDistDynCalc_h
14 #include "XmlStackedHandler.h"
18 class QXmlStreamWriter;
22 class XmlStackedHandlerReader;
80 void setQuantiles(
unsigned int nodes);
90 void save(QXmlStreamWriter &stream,
const Project *project)
const;
92 QDataStream &write(QDataStream &stream)
const;
93 QDataStream &read(QDataStream &stream);
107 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
108 const QString &qName,
const QXmlAttributes &atts);
109 virtual bool characters(
const QString &ch);
110 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
111 const QString &qName);
118 QString m_xmlHandlerCharacters;
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
void initialize()
Inializer, resets the class to start its dynamic calculation anew.
double min()
Returns the maximum observation so far included in the dynamic calculation.
unsigned int m_numberQuantiles
The number of quantiles being used to model the probility density function.
~StatCumProbDistDynCalc()
Destroys StatCumProbDistDynCalc object.
QList< int > m_numObsBelowQuantile
The actual number of observations that are less than or equal to the value of the corresponding quant...
double max()
Returns the maximum observation so far included in the dynamic calculation.
Manage a stack of content handlers for reading XML files.
The main project for ipce.
This class is used to approximate cumulative probibility distributions of a stream of observations wi...
unsigned int m_numberObservations
The number of observations, note this is dynamically changing as observations are added.
QList< double > m_idealNumObsBelowQuantile
The ideal number of observations that should be less than or equal to the value of the corresponding ...
QList< double > m_observationValues
The calculated values of the quantiles, note this is dynamically changing as observations are added.
double value(double cumProb)
Provides the value of the variable that has the given cumulative probility (according the current est...
QList< double > m_quantiles
The target quantiles being modeled, between 0 and 1.
unsigned int m_numberCells
The number of cells or histogram bins that are being used to model the probility density function.
XML Handler that parses XMLs in a stack-oriented way.
void addObs(double obs)
Values for the estimated quantile positions are update as observations are added.
StatCumProbDistDynCalc(unsigned int nodes=20, QObject *parent=0)
Construtor sets up the class to start recieving data.
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
double cumProb(double value)
Provides the cumulative probility, that is, the proportion of the distribution that is less than or e...
This is free and unencumbered software released into the public domain.