|
Isis 3 Programmer Reference
|
10 #include "Constants.h"
11 #include "IException.h"
13 #include "SpecialPixel.h"
14 #include "Statistics.h"
80 double startSample = 1.0,
double startLine = 1.0,
81 double endSample =
Null,
double endLine =
Null,
int bins = 0,
82 bool addCubeData =
false);
93 virtual void AddData(
const double *data,
const unsigned int count);
94 virtual void AddData(
const double data);
95 virtual void RemoveData(
const double *data,
const unsigned int count);
99 double Percent(
const double percent)
const;
103 virtual void BinRange(
const int index,
double &low,
double &high)
const;
109 double BinRangeStart()
const {
110 return p_binRangeStart;
112 double BinRangeEnd()
const {
113 return p_binRangeEnd;
124 double p_binRangeStart, p_binRangeEnd;
const double ValidMaximum
The maximum valid double value for Isis pixels.
This class is used to accumulate statistics on double arrays.
double Percent(const double percent) const
Computes and returns the value at X percent of the histogram.
BigInt MaxBinCount() const
Returns the highest bin count.
void SetBins(const int bins)
Change the number of bins in the histogram and reset counters.
double BinSize() const
Returns the size of an individual bin.
virtual void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the histogram counters.
void Reset()
Resets histogram counters to zero.
double BinMiddle(const int index) const
Returns the value represented by a bin.
double Skew() const
Computes and returns the skew.
void addMeasureDataFromNet(ControlNet &net, double(ControlMeasure::*statFunc)() const)
Iterates through all the measures in a network adding them to the histogram.
virtual void BinRange(const int index, double &low, double &high) const
Returns the left edge and right edge values of a bin.
BigInt BinCount(const int index) const
Returns the count at a bin position in the histogram.
virtual void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
void SetValidRange(const double minimum=Isis::ValidMinimum, const double maximum=Isis::ValidMaximum)
Changes the range of the bins.
std::vector< BigInt > p_bins
The array of counts.
double Mode() const
Returns the mode.
long long int BigInt
Big int.
IO Handler for Isis Cubes.
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.
Program progress reporter.
const double Null
Value for an Isis Null pixel.
int Bins() const
Returns the number of bins in the histogram.
const double ValidMinimum
The minimum valid double value for Isis pixels.
double Median() const
Returns the median.
Container of a cube histogram.
~Histogram()
Destructs a histogram object.
This is free and unencumbered software released into the public domain.