83 double startSample = 1.0,
double startLine = 1.0,
84 double endSample =
Null,
double endLine =
Null,
int bins = 0,
85 bool addCubeData =
false);
96 void AddData(
const double *data,
const unsigned int count);
97 void AddData(
const double data);
98 void RemoveData(
const double *data,
const unsigned int count);
102 double Percent(
const double percent)
const;
105 BigInt
BinCount(
const int index)
const;
106 void BinRange(
const int index,
double &low,
double &high)
const;
112 double BinRangeStart()
const {
113 return p_binRangeStart;
115 double BinRangeEnd()
const {
116 return p_binRangeEnd;
123 void InitializeFromCube(
Cube &cube,
int statsBand,
Progress *progress,
124 int nbins = 0,
double startSample =
Null,
double startLine =
Null,
125 double endSample =
Null,
double endLine =
Null);
132 double p_binRangeStart, p_binRangeEnd;
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
double Skew() const
Computes and returns the skew.
const double Null
Value for an Isis Null pixel.
void BinRange(const int index, double &low, double &high) const
Returns the left edge and right edge values of a bin.
const double ValidMinimum
The minimum valid double value for Isis pixels.
double Percent(const double percent) const
Computes and returns the value at X percent of the histogram.
int Bins() const
Returns the number of bins in the histogram.
~Histogram()
Destructs a histogram object.
BigInt BinCount(const int index) const
Returns the count at a bin position in the histogram.
This class is used to accumulate statistics on double arrays.
void SetValidRange(const double minimum=Isis::ValidMinimum, const double maximum=Isis::ValidMaximum)
Changes the range of the bins.
Program progress reporter.
Container of a cube histogram.
void Reset()
Resets histogram counters to zero.
Histogram(double minimum, double maximum, int bins=1024)
Constructs a histogram object.
std::vector< BigInt > p_bins
The array of counts.
double Mode() const
Returns the mode.
double BinMiddle(const int index) const
Returns the value represented by a bin.
void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the histogram counters.
const double ValidMaximum
The maximum valid double value for Isis pixels.
void addMeasureDataFromNet(ControlNet &net, double(ControlMeasure::*statFunc)() const)
Iterates through all the measures in a network adding them to the histogram.
double BinSize() const
Returns the size of an individual bin.
double Median() const
Returns the median.
void SetBins(const int bins)
Change the number of bins in the histogram and reset counters.
BigInt MaxBinCount() const
Returns the highest bin count.
void rangesFromNet(ControlNet &net, double(ControlMeasure::*statFunc)() const)
Iterates through all the measures in a network in order to find the domain of the data...
IO Handler for Isis Cubes.