91 double startSample = 1.0,
double startLine = 1.0,
92 double endSample =
Null,
double endLine =
Null,
int bins = 0,
93 bool addCubeData =
false);
104 void AddData(
const double *data,
const unsigned int count);
105 void AddData(
const double data);
106 void RemoveData(
const double *data,
const unsigned int count);
110 double Percent(
const double percent)
const;
114 void BinRange(
const int index,
double &low,
double &high)
const;
120 double BinRangeStart()
const {
121 return p_binRangeStart;
123 double BinRangeEnd()
const {
124 return p_binRangeEnd;
131 void InitializeFromCube(
Cube &cube,
int statsBand,
Progress *progress,
132 int nbins = 0,
double startSample =
Null,
double startLine =
Null,
133 double endSample =
Null,
double endLine =
Null);
140 double p_binRangeStart, p_binRangeEnd;
long long int BigInt
Big int.
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
const double Null
Value for an Isis Null pixel.
const double ValidMinimum
The minimum valid double value for Isis pixels.
BigInt BinCount(const int index) const
Returns the count at a bin position in the histogram.
double BinMiddle(const int index) const
Returns the value represented by a bin.
~Histogram()
Destructs a histogram object.
double Skew() const
Computes and returns the skew.
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.
double Mode() const
Returns the mode.
Container of a cube histogram.
void Reset()
Resets histogram counters to zero.
double Percent(const double percent) const
Computes and returns the value at X percent of the histogram.
Histogram(double minimum, double maximum, int bins=1024)
Constructs a histogram object.
BigInt MaxBinCount() const
Returns the highest bin count.
std::vector< BigInt > p_bins
The array of counts.
double BinSize() const
Returns the size of an individual 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.
Namespace for ISIS/Bullet specific routines.
void SetBins(const int bins)
Change the number of bins in the histogram and reset counters.
int Bins() const
Returns the number of bins in the histogram.
double Median() const
Returns the median.
void BinRange(const int index, double &low, double &high) const
Returns the left edge and right edge values of a bin.
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.