#include <irtkDensity.h>


This class defines and implements non-parametric density.
Definition at line 22 of file irtkDensity.h.
Public Member Functions | |
| irtkDensity (int nbins=256) | |
| Construct a histogram from another histogram. | |
| irtkDensity (double min, double max, double width) | |
| Construct a density for samples ranging from min to max and width. | |
| ~irtkDensity (void) | |
| Read constructor. | |
| void | Reset () |
| Clear and reset. | |
| int | GetNumberOfBins () const |
| Get number of bins. | |
| void | PutNumberOfBins (int) |
| Put number of bins. | |
| double | GetMin () const |
| Get minimum value. | |
| void | PutMin (double) |
| Put minimum value. | |
| double | GetMax () const |
| Get maximum value. | |
| void | PutMax (double) |
| Put maximum value. | |
| double | GetWidth () const |
| Get width of bins. | |
| void | PutWidth (double) |
| Put width of bins. | |
| double | Norm () const |
| Get norm. | |
| double | operator() (int) const |
| Get value in bin(i). | |
| void | Add (int, double=1) |
| Add value to bin. | |
| void | Delete (int, double=1) |
| Delete value from bin. | |
| void | AddSample (double, double=1) |
| Add sample to bin. | |
| void | DelSample (double, double=1) |
| 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 | Mean () |
| Convert bin into cumulative density distributions. | |
| double | Variance () |
| Calculate variance. | |
| double | StandardDeviation () |
| Calculate standard deviation. | |
| double | Entropy () |
| Calculate entropy. | |
| void | Print () |
| Read histogram. | |
| void | WriteToImage (char *image_name) |
| irtkDensity::irtkDensity | ( | int | nbins = 256 |
) |
Construct a histogram from another histogram.
Construct a density with 256 bins and samples ranging from 0 to 255
| irtkDensity::~irtkDensity | ( | void | ) |
Read constructor.
Destructor
| double irtkDensity::Mean | ( | ) |
Convert bin into cumulative density distributions.
Convert sample value into cumulative density distributions Convert cumulative density distributions to bin value Convert cumulative density distributions to sample value Calculate mean
| void irtkDensity::Print | ( | ) |
Read histogram.
Wrirte histogram Print histogram