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);
131 bool InRange(
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;
164 void save(QXmlStreamWriter &stream,
const Project *project)
const;
167 QDataStream &
write(QDataStream &stream)
const;
168 QDataStream &
read(QDataStream &stream);
172 void fromPvl(
const PvlGroup &inStats);
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);
193 Q_DISABLE_COPY(XmlHandler);
198 QString m_xmlHandlerCharacters;
208 double m_validMinimum;
209 double m_validMaximum;
217 BigInt m_underRangePixels;
long long int BigInt
Big int.
Definition: Constants.h:65
void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the accumulators and counters.
Definition: Statistics.cpp:219
The main project for ipce.
Definition: Project.h:289
double Sum() const
Returns the sum of all the data.
Definition: Statistics.cpp:354
const double ValidMinimum
The minimum valid double value for Isis pixels.
Definition: SpecialPixel.h:102
double StandardDeviation() const
Computes and returns the standard deviation.
Definition: Statistics.cpp:325
double Minimum() const
Returns the absolute minimum double found in all data passed through the AddData method.
Definition: Statistics.cpp:395
double SumSquare() const
Returns the sum of all the squared data.
Definition: Statistics.cpp:364
bool InRange(const double value)
Definition: Statistics.cpp:292
bool RemovedData() const
Definition: Statistics.cpp:538
double BestMaximum(const double percent=99.5) const
This method returns the better of the absolute maximum or the Chebyshev maximum.
Definition: Statistics.cpp:634
BigInt HrsPixels() const
Returns the total number of high representation saturation (HRS) pixels encountered.
Definition: Statistics.cpp:522
BigInt ValidPixels() const
Returns the total number of valid pixels processed.
Definition: Statistics.cpp:446
bool AboveRange(const double value)
Definition: Statistics.cpp:297
BigInt HisPixels() const
Returns the total number of high instrument saturation (HIS) pixels encountered.
Definition: Statistics.cpp:511
BigInt NullPixels() const
Returns the total number of NULL pixels encountered.
Definition: Statistics.cpp:478
BigInt OverRangePixels() const
Returns the total number of pixels over the valid range encountered.
Definition: Statistics.cpp:457
void save(QXmlStreamWriter &stream, const Project *project) const
Definition: Statistics.cpp:731
double ValidMaximum() const
Definition: Statistics.cpp:287
BigInt TotalPixels() const
Returns the total number of pixels processed (valid and invalid).
Definition: Statistics.cpp:433
QDataStream & read(QDataStream &stream)
Definition: Statistics.cpp:884
double Maximum() const
Returns the absolute maximum double found in all data passed through the AddData method.
Definition: Statistics.cpp:416
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:107
Statistics & operator=(const Statistics &other)
Definition: Statistics.cpp:96
QDataStream & write(QDataStream &stream) const
Order saved must match the offsets in the static compoundH5DataType() method.
Definition: Statistics.cpp:861
double BestMinimum(const double percent=99.5) const
This method returns the better of the absolute minimum or the Chebyshev minimum.
Definition: Statistics.cpp:611
BigInt OutOfRangePixels() const
Returns the total number of pixels outside of the valid range encountered.
Definition: Statistics.cpp:533
PvlGroup toPvl(QString name="Statistics") const
Serialize statistics as a pvl group.
Definition: Statistics.cpp:700
BigInt LisPixels() const
Returns the total number of low instrument saturation (LIS) pixels encountered.
Definition: Statistics.cpp:489
Contains multiple PvlContainers.
Definition: PvlGroup.h:57
void Reset()
Reset all accumulators and counters to zero.
Definition: Statistics.cpp:126
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:268
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:112
double Variance() const
Computes and returns the variance.
Definition: Statistics.cpp:341
BigInt UnderRangePixels() const
Returns the total number of pixels under the valid range encountered.
Definition: Statistics.cpp:468
Statistics(QObject *parent=0)
Constructs an IsisStats object with accumulators and counters set to zero.
Definition: Statistics.cpp:41
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:585
double Rms() const
Computes and returns the rms.
Definition: Statistics.cpp:378
double ValidMinimum() const
Definition: Statistics.cpp:282
BigInt LrsPixels() const
Returns the total number of low representation saturation (LRS) pixels encountered.
Definition: Statistics.cpp:500
const double ValidMaximum
The maximum valid double value for Isis pixels.
Definition: SpecialPixel.h:137
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:558
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
bool BelowRange(const double value)
Definition: Statistics.cpp:302
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition: Hillshade.cpp:308
double ZScore(const double value) const
This method returns the better of the z-score of the given value.
Definition: Statistics.cpp:654
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:154
double Average() const
Computes and returns the average.
Definition: Statistics.cpp:313
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:25
virtual ~Statistics()
Destroys the IsisStats object.
Definition: Statistics.cpp:90