Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

plLearnKHistogram Class Reference

The class for learning n dimensionnal histograms with KNOWN variables definition sets. More...

#include <plLearnKHistogram.h>

Inheritance diagram for plLearnKHistogram:

Inheritance graph
[legend]
Collaboration diagram for plLearnKHistogram:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 plLearnKHistogram ()
 Default constructor.
 plLearnKHistogram (const plVariablesConjunction &vars)
 Constructor using a set of variables.
template<class arrayType>
 plLearnKHistogram (const plVariablesConjunction &vars, arrayType init_freq, double init_weight=1.0)
 Constructor using a set of variables, initial frequencies, and an initial weight.
 plLearnKHistogram (const plLearnKHistogram &histo)
 Copy Constructor.
virtual ~plLearnKHistogram ()
 Dectructor.
void reset ()
 Resets learning.
void internal_addPoint (const plDataValues &point, double weight=1.0)
 Adds a point {point} with a given weight {weight} and updates the statistics.
void get_params (plValues &params) const
 Returns the probability table in the output parameter {params}.
plKernel get_distribution (const void *parameters=NULL) const
 Returns the probability table corresponding to the learnt distribution.
virtual void get_probability (vector< plProbValue > &table) const
 Returns the probability table corresponding to the learnt distribution in the output parameter 'table'.
virtual void get_probability (plProbValue *table) const
 Returns the probability table corresponding to the learnt distribution in the output parameter 'table'.
void get_frequency (vector< double > &table) const
 Returns the frequency table corresponding to the learnt distribution in the output parameter 'table'.
void get_frequency (double *table) const
 Returns the frequency table corresponding to the learnt distribution in the output parameter 'table'.
const vector< double > & get_frequency () const
 Returns a constant reference to the frequency table corresponding to the learnt distribution.
void get_actual_min_max (plValues &min, plValues &max) const
 Returns the actual range of the head variables according to the learnt points.
unsigned int size () const
 Returns the size of the histogram.

Detailed Description

The class for learning n dimensionnal histograms with KNOWN variables definition sets.

Definition at line 29 of file plLearnKHistogram.h.


Member Function Documentation

void plLearnKHistogram::get_frequency double *  table  )  const
 

Returns the frequency table corresponding to the learnt distribution in the output parameter 'table'.

Supposes that 'table' has the exact size.

virtual void plLearnKHistogram::get_probability plProbValue *  table  )  const [virtual]
 

Returns the probability table corresponding to the learnt distribution in the output parameter 'table'.

Supposes that 'table' has the exact size.

Reimplemented in plLearnKLaplace, and plLearnKLidstone.

void plLearnKHistogram::internal_addPoint const plDataValues &  point,
double  weight = 1.0
[virtual]
 

Adds a point {point} with a given weight {weight} and updates the statistics.

This is an internal method, do not use it directly. Use addNewPoint instead.

Implements plLearnObject.


The documentation for this class was generated from the following file:
Generated on Fri Apr 1 10:59:12 2005 for ProBT by  doxygen 1.4.1