#include <cksplit.h>
Inheritance diagram for cKSplit::
Public Types | |
typedef int (* | CritFunc )(const cKSplit &, cKSplit::Grid &, int, double *) |
typedef double (* | DivFunc )(const cKSplit &, cKSplit::Grid &, double, double *) |
Public Methods | |
Constructors, destructor, assignment. | |
cKSplit (const cKSplit &r) | |
cKSplit (const char *name=NULL) | |
virtual | ~cKSplit () |
cKSplit& | operator= (const cKSplit &res) |
Redefined cObject member functions. | |
virtual cObject* | dup () const |
virtual void | writeContents (ostream &os) |
virtual int | netPack () |
virtual int | netUnpack () |
Redefined member functions from cStatistic and its subclasses. | |
virtual void | transform () |
virtual int | cells () const |
virtual double | basepoint (int k) const |
virtual double | cell (int k) const |
virtual double | pdf (double x) const |
virtual double | cdf (double x) const |
virtual double | random () const |
virtual void | saveToFile (FILE *) const |
virtual void | loadFromFile (FILE *) |
Configuring the k-split algorithm. | |
void | setCritFunc (CritFunc _critfunc, double *_critdata) |
void | setDivFunc (DivFunc _divfunc, double *_divdata) |
void | rangeExtension (bool enabled) |
Querying the k-split data structure. | |
int | treeDepth () const |
int | treeDepth (Grid &grid) const |
double | realCellValue (Grid &grid, int cell) const |
void | printGrids () const |
Grid& | grid (int k) const |
Grid& | rootGrid () const |
Protected Methods | |
virtual void | collectTransformed (double val) |
|
Copy constructor. |
|
Constructor. |
|
Destructor. |
|
Returns the kth cell boundary. Reimplemented from cDensityEstBase. |
|
Returns the value of the Cumulated Density Function at a given x. Reimplemented from cDensityEstBase. |
|
Returns the number of observations that fell into the kth histogram cell. Reimplemented from cDensityEstBase. |
|
Returns the number of histogram cells used. Reimplemented from cDensityEstBase. |
|
Called internally by collect(), this method updates the k-split data structure with the new value. Reimplemented from cDensityEstBase. |
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cStdDev. |
|
Returns the kth grid in the k-split data structure. |
|
Reads the object data from a file, in the format written out by saveToFile(). Reimplemented from cDensityEstBase. |
|
Serializes the object into a PVM or MPI send buffer. Used by the simulation kernel for parallel execution. See cObject for more details. Reimplemented from cDensityEstBase. |
|
Deserializes the object from a PVM or MPI receive buffer. Used by the simulation kernel for parallel execution. See cObject for more details. Reimplemented from cDensityEstBase. |
|
Assignment operator. The name member doesn't get copied; see cObject's operator=() for more details. |
|
Returns the value of the Probability Density Function at a given x. Reimplemented from cDensityEstBase. |
|
Dumps the contents of the k-split data structure to ev. |
|
Generates a random number based on the collected data. Uses the random number generator set by setGenK(). Reimplemented from cDensityEstBase. |
|
Enables/disables range extension. If range extension is enabled, a new observation that falls outside the k-split range (ie. outside the root grid) will cause the range to be expanded (i.e. new root grid(s) to be placed above the current root grid). If range extension is disabled, such observations will simply be counted as underflows or overflows. |
|
Returns the actual amount of observations in cell 'cell' of 'grid'. This is not necessarily an integer value because of previous cell splits. |
|
Returns the root grid of the k-split data structure. |
|
Writes the contents of the object into a text file. Reimplemented from cDensityEstBase. |
|
Configures the k-split algorithm by supplying a custom split criterion function. |
|
Configures the k-split algorithm by supplying a custom cell division function. |
|
Transforms the table of pre-collected values into the k-split data structure. Reimplemented from cDensityEstBase. |
|
Returns the depth of the k-split tree measured from the specified grid. |
|
Returns the depth of the k-split tree. |
|
Writes textual information about this object to the stream. See cObject for more details. Reimplemented from cDensityEstBase. |