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);
133 bool InRange(
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;
166 void save(QXmlStreamWriter &stream,
const Project *project)
const;
169 QDataStream &
write(QDataStream &stream)
const;
170 QDataStream &
read(QDataStream &stream);
176 void fromPvl(
const PvlGroup &inStats);
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);
197 Q_DISABLE_COPY(XmlHandler);
202 QString m_xmlHandlerCharacters;
212 double m_validMinimum;
213 double m_validMaximum;
221 BigInt m_underRangePixels;
long long int BigInt
Definition: Constants.h:63
BigInt LisPixels() const
Returns the total number of low instrument saturation (LIS) pixels encountered.
Definition: Statistics.cpp:493
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...
Definition: Statistics.cpp:589
void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the accumulators and counters.
Definition: Statistics.cpp:223
The main project for cnetsuite.
Definition: Project.h:105
QDataStream & write(QDataStream &stream) const
Order saved must match the offsets in the static compoundH5DataType() method.
Definition: Statistics.cpp:865
BigInt NullPixels() const
Returns the total number of NULL pixels encountered.
Definition: Statistics.cpp:482
static H5::CompType compoundH5DataType()
H5 compound data type uses the offesets from the QDataStream returned by the write(QDataStream &strea...
Definition: Statistics.cpp:952
const double ValidMinimum
The minimum valid double value for Isis pixels.
Definition: SpecialPixel.h:101
double Minimum() const
Returns the absolute minimum double found in all data passed through the AddData method.
Definition: Statistics.cpp:399
bool InRange(const double value)
Definition: Statistics.cpp:296
double BestMaximum(const double percent=99.5) const
This method returns the better of the absolute maximum or the Chebyshev maximum.
Definition: Statistics.cpp:638
double Rms() const
Computes and returns the rms.
Definition: Statistics.cpp:382
BigInt HisPixels() const
Returns the total number of high instrument saturation (HIS) pixels encountered.
Definition: Statistics.cpp:515
PvlGroup toPvl(QString name="Statistics") const
Serialize statistics as a pvl group.
Definition: Statistics.cpp:704
bool AboveRange(const double value)
Definition: Statistics.cpp:301
double Variance() const
Computes and returns the variance.
Definition: Statistics.cpp:345
double ValidMaximum() const
Definition: Statistics.cpp:291
double StandardDeviation() const
Computes and returns the standard deviation.
Definition: Statistics.cpp:329
double Sum() const
Returns the sum of all the data.
Definition: Statistics.cpp:358
QDataStream & read(QDataStream &stream)
Definition: Statistics.cpp:888
double ZScore(const double value) const
This method returns the better of the z-score of the given value.
Definition: Statistics.cpp:658
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:109
double ValidMinimum() const
Definition: Statistics.cpp:286
Statistics & operator=(const Statistics &other)
Definition: Statistics.cpp:100
BigInt HrsPixels() const
Returns the total number of high representation saturation (HRS) pixels encountered.
Definition: Statistics.cpp:526
BigInt TotalPixels() const
Returns the total number of pixels processed (valid and invalid).
Definition: Statistics.cpp:437
BigInt ValidPixels() const
Returns the total number of valid pixels processed.
Definition: Statistics.cpp:450
void save(QXmlStreamWriter &stream, const Project *project) const
Definition: Statistics.cpp:735
Contains multiple PvlContainers.
Definition: PvlGroup.h:57
double Average() const
Computes and returns the average.
Definition: Statistics.cpp:317
void Reset()
Reset all accumulators and counters to zero.
Definition: Statistics.cpp:130
BigInt LrsPixels() const
Returns the total number of low representation saturation (LRS) pixels encountered.
Definition: Statistics.cpp:504
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
Definition: CSVReader.cpp:463
void SetValidRange(const double minimum=Isis::ValidMinimum, const double maximum=Isis::ValidMaximum)
Definition: Statistics.cpp:272
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:47
double Maximum() const
Returns the absolute maximum double found in all data passed through the AddData method.
Definition: Statistics.cpp:420
BigInt OutOfRangePixels() const
Returns the total number of pixels outside of the valid range encountered.
Definition: Statistics.cpp:537
Statistics(QObject *parent=0)
Constructs an IsisStats object with accumulators and counters set to zero.
Definition: Statistics.cpp:45
BigInt UnderRangePixels() const
Returns the total number of pixels under the valid range encountered.
Definition: Statistics.cpp:472
double SumSquare() const
Returns the sum of all the squared data.
Definition: Statistics.cpp:368
const double ValidMaximum
The maximum valid double value for Isis pixels.
Definition: SpecialPixel.h:136
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...
Definition: Statistics.cpp:562
bool BelowRange(const double value)
Definition: Statistics.cpp:306
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition: Hillshade.cpp:308
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:158
double BestMinimum(const double percent=99.5) const
This method returns the better of the absolute minimum or the Chebyshev minimum.
Definition: Statistics.cpp:615
his enables stack-based XML parsing of XML files.
Definition: XmlStackedHandlerReader.h:26
bool RemovedData() const
Definition: Statistics.cpp:542
virtual ~Statistics()
Destroys the IsisStats object.
Definition: Statistics.cpp:94
BigInt OverRangePixels() const
Returns the total number of pixels over the valid range encountered.
Definition: Statistics.cpp:461