|
Isis Developer Reference
|
Go to the documentation of this file.
20 class QXmlStreamWriter;
24 class XmlStackedHandlerReader;
107 void AddData(
const double *data,
const unsigned int count);
108 void AddData(
const double data);
110 void RemoveData(
const double *data,
const unsigned int count);
118 bool InRange(
const double value);
133 double BestMinimum(
const double percent = 99.5)
const;
134 double BestMaximum(
const double percent = 99.5)
const;
135 double ZScore(
const double value)
const;
151 void save(QXmlStreamWriter &stream,
const Project *project)
const;
154 QDataStream &
write(QDataStream &stream)
const;
155 QDataStream &
read(QDataStream &stream);
159 void fromPvl(
const PvlGroup &inStats);
173 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
174 const QString &qName,
const QXmlAttributes &atts);
175 virtual bool characters(
const QString &ch);
176 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
177 const QString &qName);
180 Q_DISABLE_COPY(XmlHandler);
185 QString m_xmlHandlerCharacters;
195 double m_validMinimum;
196 double m_validMaximum;
204 BigInt m_underRangePixels;
const double ValidMaximum
The maximum valid double value for Isis pixels.
Definition: SpecialPixel.h:122
double SumSquare() const
Returns the sum of all the squared data.
Definition: Statistics.cpp:351
BigInt NullPixels() const
Returns the total number of NULL pixels encountered.
Definition: Statistics.cpp:465
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:141
double Sum() const
Returns the sum of all the data.
Definition: Statistics.cpp:341
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition: Hillshade.cpp:314
BigInt TotalPixels() const
Returns the total number of pixels processed (valid and invalid).
Definition: Statistics.cpp:420
A single keyword-value pair.
Definition: PvlKeyword.h:82
QDataStream & read(QDataStream &stream)
Definition: Statistics.cpp:879
bool InRange(const double value)
Definition: Statistics.cpp:279
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
bool IsNullPixel(const double d)
Returns if the input pixel is null.
Definition: SpecialPixel.h:235
double ValidMaximum() const
Definition: Statistics.cpp:274
double Maximum() const
Returns the absolute maximum double found in all data passed through the AddData method.
Definition: Statistics.cpp:403
void Reset()
Reset all accumulators and counters to zero.
Definition: Statistics.cpp:113
BigInt HrsPixels() const
Returns the total number of high representation saturation (HRS) pixels encountered.
Definition: Statistics.cpp:509
bool IsHrsPixel(const double d)
Returns if the input pixel is high representation saturation.
Definition: SpecialPixel.h:271
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
BigInt ValidPixels() const
Returns the total number of valid pixels processed.
Definition: Statistics.cpp:433
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
void SetValidRange(const double minimum=Isis::ValidMinimum, const double maximum=Isis::ValidMaximum)
Definition: Statistics.cpp:255
BigInt OverRangePixels() const
Returns the total number of pixels over the valid range encountered.
Definition: Statistics.cpp:444
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
The main project for ipce.
Definition: Project.h:289
Statistics & operator=(const Statistics &other)
Definition: Statistics.cpp:83
void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the accumulators and counters.
Definition: Statistics.cpp:206
BigInt HisPixels() const
Returns the total number of high instrument saturation (HIS) pixels encountered.
Definition: Statistics.cpp:498
double Variance() const
Computes and returns the variance.
Definition: Statistics.cpp:328
BigInt UnderRangePixels() const
Returns the total number of pixels under the valid range encountered.
Definition: Statistics.cpp:455
BigInt LisPixels() const
Returns the total number of low instrument saturation (LIS) pixels encountered.
Definition: Statistics.cpp:476
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:572
double Rms() const
Computes and returns the rms.
Definition: Statistics.cpp:365
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
BigInt toBigInt(const QString &string)
Global function to convert from a string to a "big" integer.
Definition: IString.cpp:115
double StandardDeviation() const
Computes and returns the standard deviation.
Definition: Statistics.cpp:312
double Minimum() const
Returns the absolute minimum double found in all data passed through the AddData method.
Definition: Statistics.cpp:382
void save(QXmlStreamWriter &stream, const Project *project) const
Definition: Statistics.cpp:726
const double NULL8
Definition: SpecialPixel.h:94
long long int BigInt
Big int.
Definition: Constants.h:49
double BestMaximum(const double percent=99.5) const
This method returns the better of the absolute maximum or the Chebyshev maximum.
Definition: Statistics.cpp:625
double ZScore(const double value) const
This method returns the better of the z-score of the given value.
Definition: Statistics.cpp:649
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Definition: XmlStackedHandler.cpp:55
Isis exception class.
Definition: IException.h:91
bool IsLisPixel(const double d)
Returns if the input pixel is low instrument saturation.
Definition: SpecialPixel.h:295
BigInt OutOfRangePixels() const
Returns the total number of pixels outside of the valid range encountered.
Definition: Statistics.cpp:520
PvlGroup toPvl(QString name="Statistics") const
Serialize statistics as a pvl group.
Definition: Statistics.cpp:695
bool IsLrsPixel(const double d)
Returns if the input pixel is low representation saturation.
Definition: SpecialPixel.h:307
double Average() const
Computes and returns the average.
Definition: Statistics.cpp:300
bool IsHisPixel(const double d)
Returns if the input pixel is high instrument saturation.
Definition: SpecialPixel.h:283
bool AboveRange(const double value)
Definition: Statistics.cpp:284
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
const double ValidMinimum
The minimum valid double value for Isis pixels.
Definition: SpecialPixel.h:87
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
bool RemovedData() const
Definition: Statistics.cpp:525
Namespace for the standard library.
double BestMinimum(const double percent=99.5) const
This method returns the better of the absolute minimum or the Chebyshev minimum.
Definition: Statistics.cpp:598
Statistics(QObject *parent=0)
Constructs an IsisStats object with accumulators and counters set to zero.
Definition: Statistics.cpp:28
bool toBool(const QString &string)
Global function to convert from a string to a boolean.
Definition: IString.cpp:38
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
bool BelowRange(const double value)
Definition: Statistics.cpp:289
QDataStream & write(QDataStream &stream) const
Order saved must match the offsets in the static compoundH5DataType() method.
Definition: Statistics.cpp:856
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:545
double ValidMinimum() const
Definition: Statistics.cpp:269
virtual ~Statistics()
Destroys the IsisStats object.
Definition: Statistics.cpp:77
BigInt LrsPixels() const
Returns the total number of low representation saturation (LRS) pixels encountered.
Definition: Statistics.cpp:487
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
Definition: CSVReader.cpp:447
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16