33 #include "XmlStackedHandler.h"
37 class QXmlStreamWriter;
41 class XmlStackedHandlerReader;
122 void AddData(
const double *data,
const unsigned int count);
123 void AddData(
const double data);
125 void RemoveData(
const double *data,
const unsigned int count);
131 double ValidMinimum()
const;
132 double ValidMaximum()
const;
133 bool InRange(
const double value);
134 bool AboveRange(
const double value);
135 bool BelowRange(
const double value);
148 double BestMinimum(
const double percent = 99.5)
const;
149 double BestMaximum(
const double percent = 99.5)
const;
150 double ZScore(
const double value)
const;
162 bool RemovedData()
const;
166 void save(QXmlStreamWriter &stream,
const Project *project)
const;
169 QDataStream &
write(QDataStream &stream)
const;
170 QDataStream &read(QDataStream &stream);
190 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
191 const QString &qName,
const QXmlAttributes &atts);
192 virtual bool characters(
const QString &ch);
193 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
194 const QString &qName);
202 QString m_xmlHandlerCharacters;
BigInt LisPixels() const
Returns the total number of low instrument saturation (LIS) pixels encountered.
double ChebyshevMaximum(const double percent=99.5) const
This method returns a maximum such that X percent of the data will fall with K standard deviations of...
void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the accumulators and counters.
BigInt m_nullPixels
Count of null pixels processed.
The main project for cnetsuite.
QDataStream & write(QDataStream &stream) const
Order saved must match the offsets in the static compoundH5DataType() method.
BigInt NullPixels() const
Returns the total number of NULL pixels encountered.
static H5::CompType compoundH5DataType()
H5 compound data type uses the offesets from the QDataStream returned by the write(QDataStream &strea...
const double ValidMinimum
The minimum valid double value for Isis pixels.
double Minimum() const
Returns the absolute minimum double found in all data passed through the AddData method.
double BestMaximum(const double percent=99.5) const
This method returns the better of the absolute maximum or the Chebyshev maximum.
double Rms() const
Computes and returns the rms.
BigInt m_lisPixels
Count of low representation saturation pixels processed.
BigInt HisPixels() const
Returns the total number of high instrument saturation (HIS) pixels encountered.
void fromPvl(const PvlGroup &inStats)
Unserializes a Statistics object from a pvl group.
PvlGroup toPvl(QString name="Statistics") const
Serialize statistics as a pvl group.
double Variance() const
Computes and returns the variance.
double m_sum
The sum accumulator, i.e. the sum of added data values.
double StandardDeviation() const
Computes and returns the standard deviation.
double Sum() const
Returns the sum of all the data.
double ZScore(const double value) const
This method returns the better of the z-score of the given value.
BigInt m_hrsPixels
Count of high instrument saturation pixels processed.
This class is used to accumulate statistics on double arrays.
BigInt HrsPixels() const
Returns the total number of high representation saturation (HRS) pixels encountered.
BigInt TotalPixels() const
Returns the total number of pixels processed (valid and invalid).
BigInt m_validPixels
Count of valid pixels (non-special) processed.
BigInt ValidPixels() const
Returns the total number of valid pixels processed.
Contains multiple PvlContainers.
double Average() const
Computes and returns the average.
void Reset()
Reset all accumulators and counters to zero.
BigInt LrsPixels() const
Returns the total number of low representation saturation (LRS) pixels encountered.
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
double m_sumsum
The sum-squared accumulator, i.e.
XML Handler that parses XMLs in a stack-oriented way.
double m_minimum
Minimum double value encountered.
double Maximum() const
Returns the absolute maximum double found in all data passed through the AddData method.
BigInt OutOfRangePixels() const
Returns the total number of pixels outside of the valid range encountered.
Statistics(QObject *parent=0)
Constructs an IsisStats object with accumulators and counters set to zero.
bool m_removedData
Indicates the RemoveData method was called which implies m_minimum and m_maximum are invalid...
BigInt UnderRangePixels() const
Returns the total number of pixels under the valid range encountered.
double SumSquare() const
Returns the sum of all the squared data.
BigInt m_overRangePixels
Count of pixels greater than the valid range.
const double ValidMaximum
The maximum valid double value for Isis pixels.
double m_maximum
Maximum double value encountered.
double ChebyshevMinimum(const double percent=99.5) const
This method returns a minimum such that X percent of the data will fall with K standard deviations of...
BigInt m_totalPixels
Count of total pixels processed.
double m_validMaximum
Maximum valid pixel value.
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
double BestMinimum(const double percent=99.5) const
This method returns the better of the absolute minimum or the Chebyshev minimum.
BigInt m_hisPixels
Count of high instrument representation pixels processed.
double m_validMinimum
Minimum valid pixel value.
BigInt m_lrsPixels
Count of low instrument saturation pixels processed.
his enables stack-based XML parsing of XML files.
virtual ~Statistics()
Destroys the IsisStats object.
BigInt m_underRangePixels
Count of pixels less than the valid range.
BigInt OverRangePixels() const
Returns the total number of pixels over the valid range encountered.