29 #include "XmlStackedHandler.h" 33 class QXmlStreamWriter;
37 class XmlStackedHandlerReader;
120 void AddData(
const double *data,
const unsigned int count);
121 void AddData(
const double data);
123 void RemoveData(
const double *data,
const unsigned int count);
129 double ValidMinimum()
const;
130 double ValidMaximum()
const;
131 bool InRange(
const double value);
132 bool AboveRange(
const double value);
133 bool BelowRange(
const double value);
146 double BestMinimum(
const double percent = 99.5)
const;
147 double BestMaximum(
const double percent = 99.5)
const;
148 double ZScore(
const double value)
const;
160 bool RemovedData()
const;
164 void save(QXmlStreamWriter &stream,
const Project *project)
const;
167 QDataStream &
write(QDataStream &stream)
const;
168 QDataStream &read(QDataStream &stream);
186 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
187 const QString &qName,
const QXmlAttributes &atts);
188 virtual bool characters(
const QString &ch);
189 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
190 const QString &qName);
198 QString m_xmlHandlerCharacters;
long long int BigInt
Big int.
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 ipce.
double Sum() const
Returns the sum of all the data.
const double ValidMinimum
The minimum valid double value for Isis pixels.
double StandardDeviation() const
Computes and returns the standard deviation.
double Minimum() const
Returns the absolute minimum double found in all data passed through the AddData method.
double SumSquare() const
Returns the sum of all the squared data.
double BestMaximum(const double percent=99.5) const
This method returns the better of the absolute maximum or the Chebyshev maximum.
BigInt m_lisPixels
Count of low representation saturation pixels processed.
BigInt HrsPixels() const
Returns the total number of high representation saturation (HRS) pixels encountered.
void fromPvl(const PvlGroup &inStats)
Unserializes a Statistics object from a pvl group.
BigInt ValidPixels() const
Returns the total number of valid pixels processed.
BigInt HisPixels() const
Returns the total number of high instrument saturation (HIS) pixels encountered.
BigInt NullPixels() const
Returns the total number of NULL pixels encountered.
BigInt OverRangePixels() const
Returns the total number of pixels over the valid range encountered.
double m_sum
The sum accumulator, i.e. the sum of added data values.
BigInt TotalPixels() const
Returns the total number of pixels processed (valid and invalid).
double Maximum() const
Returns the absolute maximum double found in all data passed through the AddData method.
BigInt m_hrsPixels
Count of high instrument saturation pixels processed.
This class is used to accumulate statistics on double arrays.
QDataStream & write(QDataStream &stream) const
Order saved must match the offsets in the static compoundH5DataType() method.
double BestMinimum(const double percent=99.5) const
This method returns the better of the absolute minimum or the Chebyshev minimum.
BigInt OutOfRangePixels() const
Returns the total number of pixels outside of the valid range encountered.
PvlGroup toPvl(QString name="Statistics") const
Serialize statistics as a pvl group.
BigInt LisPixels() const
Returns the total number of low instrument saturation (LIS) pixels encountered.
BigInt m_validPixels
Count of valid pixels (non-special) processed.
Contains multiple PvlContainers.
void Reset()
Reset all accumulators and counters to zero.
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 Variance() const
Computes and returns the variance.
double m_minimum
Minimum double value encountered.
BigInt UnderRangePixels() const
Returns the total number of pixels under the valid range encountered.
Statistics(QObject *parent=0)
Constructs an IsisStats object with accumulators and counters set to zero.
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...
double Rms() const
Computes and returns the rms.
bool m_removedData
Indicates the RemoveData method was called which implies m_minimum and m_maximum are invalid...
BigInt LrsPixels() const
Returns the total number of low representation saturation (LRS) pixels encountered.
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.
Namespace for ISIS/Bullet specific routines.
double m_validMaximum
Maximum valid pixel value.
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
double ZScore(const double value) const
This method returns the better of the z-score of the given value.
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
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.
double Average() const
Computes and returns the average.
Manage a stack of content handlers for reading XML files.
virtual ~Statistics()
Destroys the IsisStats object.
BigInt m_underRangePixels
Count of pixels less than the valid range.