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;
106 void BinRange(
const int index,
double &low,
double &high)
const;
113 return p_binRangeStart;
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);
131 std::vector<BigInt> p_bins;
132 double p_binRangeStart, p_binRangeEnd;
long long int BigInt
Definition: Constants.h:63
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
Definition: Histogram.cpp:448
double Skew() const
Computes and returns the skew.
Definition: Histogram.cpp:600
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:109
void BinRange(const int index, double &low, double &high) const
Returns the left edge and right edge values of a bin.
Definition: Histogram.cpp:643
const double ValidMinimum
The minimum valid double value for Isis pixels.
Definition: SpecialPixel.h:101
double BinRangeStart() const
Definition: Histogram.h:112
double Percent(const double percent) const
Computes and returns the value at X percent of the histogram.
Definition: Histogram.cpp:567
int Bins() const
Returns the number of bins in the histogram.
Definition: Histogram.cpp:699
~Histogram()
Destructs a histogram object.
Definition: Histogram.cpp:391
BigInt BinCount(const int index) const
Returns the count at a bin position in the histogram.
Definition: Histogram.cpp:619
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:109
void SetValidRange(const double minimum=Isis::ValidMinimum, const double maximum=Isis::ValidMaximum)
Changes the range of the bins.
Definition: Histogram.cpp:408
Program progress reporter.
Definition: Progress.h:58
a control network
Definition: ControlNet.h:207
Container of a cube histogram.
Definition: Histogram.h:78
void Reset()
Resets histogram counters to zero.
Definition: Histogram.cpp:426
Histogram(double minimum, double maximum, int bins=1024)
Constructs a histogram object.
Definition: Histogram.cpp:49
double BinRangeEnd() const
Definition: Histogram.h:115
double Mode() const
Returns the mode.
Definition: Histogram.cpp:544
double BinMiddle(const int index) const
Returns the value represented by a bin.
Definition: Histogram.cpp:665
void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the histogram counters.
Definition: Histogram.cpp:507
const double ValidMaximum
The maximum valid double value for Isis pixels.
Definition: SpecialPixel.h:136
a control measurement
Definition: ControlMeasure.h:171
double BinSize() const
Returns the size of an individual bin.
Definition: Histogram.cpp:686
double Median() const
Returns the median.
Definition: Histogram.cpp:535
void SetBins(const int bins)
Change the number of bins in the histogram and reset counters.
Definition: Histogram.cpp:435
BigInt MaxBinCount() const
Returns the highest bin count.
Definition: Histogram.cpp:709
IO Handler for Isis Cubes.
Definition: Cube.h:158