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;
121 return p_binRangeStart;
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);
139 std::vector<BigInt> p_bins;
140 double p_binRangeStart, p_binRangeEnd;
long long int BigInt
Big int.
Definition: Constants.h:65
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
Definition: Histogram.cpp:453
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:110
const double ValidMinimum
The minimum valid double value for Isis pixels.
Definition: SpecialPixel.h:102
double BinRangeStart() const
Definition: Histogram.h:120
BigInt BinCount(const int index) const
Returns the count at a bin position in the histogram.
Definition: Histogram.cpp:624
double BinMiddle(const int index) const
Returns the value represented by a bin.
Definition: Histogram.cpp:670
~Histogram()
Destructs a histogram object.
Definition: Histogram.cpp:396
double Skew() const
Computes and returns the skew.
Definition: Histogram.cpp:605
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:107
void SetValidRange(const double minimum=Isis::ValidMinimum, const double maximum=Isis::ValidMaximum)
Changes the range of the bins.
Definition: Histogram.cpp:413
Program progress reporter.
Definition: Progress.h:58
double Mode() const
Returns the mode.
Definition: Histogram.cpp:549
a control network
Definition: ControlNet.h:271
Container of a cube histogram.
Definition: Histogram.h:86
void Reset()
Resets histogram counters to zero.
Definition: Histogram.cpp:431
double BinRangeEnd() const
Definition: Histogram.h:123
double Percent(const double percent) const
Computes and returns the value at X percent of the histogram.
Definition: Histogram.cpp:572
Histogram(double minimum, double maximum, int bins=1024)
Constructs a histogram object.
Definition: Histogram.cpp:50
BigInt MaxBinCount() const
Returns the highest bin count.
Definition: Histogram.cpp:714
double BinSize() const
Returns the size of an individual bin.
Definition: Histogram.cpp:691
void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the histogram counters.
Definition: Histogram.cpp:512
const double ValidMaximum
The maximum valid double value for Isis pixels.
Definition: SpecialPixel.h:137
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
a control measurement
Definition: ControlMeasure.h:189
void SetBins(const int bins)
Change the number of bins in the histogram and reset counters.
Definition: Histogram.cpp:440
int Bins() const
Returns the number of bins in the histogram.
Definition: Histogram.cpp:704
double Median() const
Returns the median.
Definition: Histogram.cpp:540
void BinRange(const int index, double &low, double &high) const
Returns the left edge and right edge values of a bin.
Definition: Histogram.cpp:648
IO Handler for Isis Cubes.
Definition: Cube.h:170