#include <irtkHistogram_1D.h>
This class defines and implements 2D histograms.
Definition at line 22 of file irtkHistogram_1D.h.
Public Member Functions | |
irtkHistogram_1D (const irtkHistogram_1D &) | |
Construct a histogram from another histogram. | |
irtkHistogram_1D (int nbins=256) | |
Construct a histogram with 256 bins and samples ranging from 0 to 255. | |
irtkHistogram_1D (double min, double max, double width) | |
Construct a histogram for samples ranging from min to max and width. | |
irtkHistogram_1D (char *) | |
Read constructor. | |
~irtkHistogram_1D (void) | |
Destructor. | |
void | Reset () |
Clear and reset histogram. | |
int | GetNumberOfBins () const |
Get number of bins in histogram. | |
void | PutNumberOfBins (int) |
Put number of bins in histogram. | |
double | GetMin () const |
Get minimum value in histogram. | |
void | PutMin (double) |
Put minimum value in histogram. | |
double | GetMax () const |
Get maximum value in histogram. | |
void | PutMax (double) |
Put maximum value in histogram. | |
double | GetWidth () const |
Get width of bins in histogram. | |
void | PutWidth (double) |
Put width of bins in histogram. | |
int | NumberOfSamples () const |
Get number of samples in histogram. | |
int | operator() (int) const |
Get number of samples in bin(i). | |
void | Add (int, int=1) |
Add counts to bin. | |
void | Delete (int, int=1) |
Delete counts from bin. | |
void | AddSample (double) |
Add sample to bin. | |
void | DelSample (double) |
Delete sample from bin. | |
int | ValToBin (double val) |
Convert sample value to bin index. | |
double | BinToVal (int bin) |
Convert bin index to sample value. | |
double | BinToPDF (int bin) |
Convert bin into probability density distributions. | |
double | ValToPDF (double val) |
Convert sample value into probability density distributions. | |
double | BinToCDF (int bin) |
Convert bin into cumulative density distributions. | |
double | ValToCDF (double val) |
Convert sample value into cumulative density distributions. | |
double | CDFToBin (double p) |
Convert cumulative density distributions to bin value. | |
double | CDFToVal (double p) |
Convert cumulative density distributions to sample value. | |
double | Mean () |
Calculate mean. | |
double | Variance () |
Calculate variance. | |
double | StandardDeviation () |
Calculate standard deviation. | |
double | Entropy () |
Calculate entropy. | |
void | Read (char *filename) |
Read histogram. | |
void | Write (char *filename) |
Wrirte histogram. | |
void | Print () |
Print histogram. |