#include <distribution.h>
Inheritance diagram for CLUS::Distribution:
Public Member Functions | |
Distribution (int InDim=0) | |
Regressor * | CreateRegressor (void) |
Creates a class that can do the regression for this distribution if given the input. | |
bool | HasZeroWeight (void) |
Returns true if weitht=0. In this case the distribution should not be used. | |
void | RandomCluster (void) |
Initializes the parameters of the distribution randomly. | |
void | NormalizeData (const double *DataCache, double *X) |
Perform distribution dependent transformations on the data. | |
void | DenormalizeParameters (Distribution *pD) |
Reverse the normalization transformation in original space. | |
double | InferProbability (const double *DataCache) |
Probability that a point belongs to this distribution at inference, unnormalized. | |
double | LearnProbability (const double *DataCache) |
Probability that a point belongs to this distribution at learning, unnormalized. | |
double | Probability (const double *DataCache) |
Probability that a point belongs to this distribution (unnormalized). Same as learn probability. | |
double | LastInferProbability (void) |
Returns the last Inference probability. | |
double | LastLearnProbability (void) |
Returns the last Learning probability. | |
double | LastProbability (void) |
double | NormalizeInferProbability (double Coef, int nrClus=1) |
Normalizes the probability of belonging to this cluster, normalizing over the mixture Coef is sum alpha*P(x|distribution). | |
double | NormalizeLearnProbability (double Coef, int nrClus=1) |
Normalizes the probability of belonging to this cluster, normalizing over the mixture Coef is sum alpha*P(x|distribution). | |
double | NormalizeProbability (double Coef, int nrClus=1) |
Makes the simple normalization of the probability not more sophisticated version that can be later added. | |
void | InitializeStatistics (void) |
Prepares the distribution for learning. | |
void | UpdateStatistics (double prob) |
Updates the sufficient statistics. | |
double | UpdateParameters (void) |
Computes the values of the new parameters from sufficient statistics. | |
bool | SetOptionDbl (char *optName, double value) |
void | AdjustYwithYoverD (double &y) |
Computes the output value for the distribution*probab. | |
void | RandomDistribution (int NrClusters) |
Random initialization of a distribution. | |
void | SaveToStream (ostream &out) |
Saves the state of the Distribution in a stream. | |
void | LoadFromStream (istream &in) |
Loads the state of the Distribution in a stream. | |
Static Public Member Functions | |
string | TypeName (void) |
Protected Attributes | |
int | inDim |
The dimentionality of the input space. | |
const double * | dataCache |
Used for optimization purpses. Is the last parameter passed to Infer or Learn. | |
double | probabilityInfer |
Cached values for the last probabilities of belonging to the cluster. | |
double | probabilityLearn |
Cached values for the last probabilities of belonging to the cluster. | |
double | weight |
The weight in the sum of distributions. |
Definition at line 51 of file distribution.h.
|
Definition at line 68 of file distribution.h. |
|
Computes the output value for the distribution*probab.
Reimplemented in CLUS::MultiDimNormal, and CLUS::SkinyMultiDimNormal. Definition at line 195 of file distribution.h. |
|
Creates a class that can do the regression for this distribution if given the input.
Reimplemented in CLUS::MultiDimNormal, and CLUS::SkinyMultiDimNormal. Definition at line 74 of file distribution.h. |
|
Reverse the normalization transformation in original space.
Definition at line 98 of file distribution.h. |
|
Returns true if weitht=0. In this case the distribution should not be used.
Definition at line 80 of file distribution.h. |
|
Probability that a point belongs to this distribution at inference, unnormalized.
Reimplemented in CLUS::MultiDimNormal, and CLUS::SkinyMultiDimNormal. Definition at line 103 of file distribution.h. |
|
Prepares the distribution for learning.
Definition at line 166 of file distribution.h. |
|
Returns the last Inference probability.
Definition at line 121 of file distribution.h. |
|
Returns the last Learning probability.
Definition at line 127 of file distribution.h. |
|
Definition at line 132 of file distribution.h. |
|
Probability that a point belongs to this distribution at learning, unnormalized.
Reimplemented in CLUS::MultiDimNormal, CLUS::SimpleNormalDistribution, and CLUS::SkinyMultiDimNormal. Definition at line 109 of file distribution.h. Referenced by Probability(). |
|
Loads the state of the Distribution in a stream.
Reimplemented in CLUS::MultiDimNormal, and CLUS::SkinyMultiDimNormal. Definition at line 207 of file distribution.h. |
|
Perform distribution dependent transformations on the data.
Reimplemented in CLUS::MultiDimNormal, and CLUS::SkinyMultiDimNormal. Definition at line 90 of file distribution.h. |
|
Normalizes the probability of belonging to this cluster, normalizing over the mixture Coef is sum alpha*P(x|distribution).
Definition at line 139 of file distribution.h. |
|
Normalizes the probability of belonging to this cluster, normalizing over the mixture Coef is sum alpha*P(x|distribution).
Reimplemented in CLUS::MultiDimNormal, CLUS::SimpleNormalDistribution, and CLUS::SkinyMultiDimNormal. Definition at line 149 of file distribution.h. Referenced by NormalizeProbability(). |
|
Makes the simple normalization of the probability not more sophisticated version that can be later added.
Reimplemented in CLUS::SimpleNormalDistribution. Definition at line 160 of file distribution.h. |
|
Probability that a point belongs to this distribution (unnormalized). Same as learn probability.
Reimplemented in CLUS::SimpleNormalDistribution. Definition at line 115 of file distribution.h. |
|
Initializes the parameters of the distribution randomly.
Definition at line 86 of file distribution.h. |
|
Random initialization of a distribution.
Reimplemented in CLUS::MultiDimNormal, CLUS::SimpleNormalDistribution, and CLUS::SkinyMultiDimNormal. Definition at line 199 of file distribution.h. |
|
Saves the state of the Distribution in a stream.
Reimplemented in CLUS::MultiDimNormal, and CLUS::SkinyMultiDimNormal. Definition at line 203 of file distribution.h. |
|
Definition at line 184 of file distribution.h. |
|
Reimplemented in CLUS::MultiDimNormal, CLUS::SimpleNormalDistribution, and CLUS::SkinyMultiDimNormal. Definition at line 179 of file distribution.h. |
|
Computes the values of the new parameters from sufficient statistics.
Reimplemented in CLUS::MultiDimNormal, CLUS::SimpleNormalDistribution, and CLUS::SkinyMultiDimNormal. Definition at line 174 of file distribution.h. |
|
Updates the sufficient statistics.
Definition at line 170 of file distribution.h. |
|
Used for optimization purpses. Is the last parameter passed to Infer or Learn.
Definition at line 59 of file distribution.h. Referenced by CLUS::MultiDimNormal::AdjustYwithYoverD(), Distribution(), CLUS::MultiDimNormal::InferProbability(), CLUS::SimpleNormalDistribution::LearnProbability(), CLUS::MultiDimNormal::LearnProbability(), CLUS::SimpleNormalDistribution::NormalizeLearnProbability(), and CLUS::MultiDimNormal::NormalizeLearnProbability(). |
|
|
Cached values for the last probabilities of belonging to the cluster.
Definition at line 62 of file distribution.h. Referenced by CLUS::MultiDimNormal::AdjustYwithYoverD(), Distribution(), CLUS::SkinyMultiDimNormal::InferProbability(), CLUS::MultiDimNormal::InferProbability(), LastInferProbability(), and NormalizeInferProbability(). |
|
Cached values for the last probabilities of belonging to the cluster.
Definition at line 62 of file distribution.h. Referenced by Distribution(), LastLearnProbability(), LastProbability(), CLUS::SkinyMultiDimNormal::LearnProbability(), CLUS::SimpleNormalDistribution::LearnProbability(), CLUS::MultiDimNormal::LearnProbability(), and NormalizeLearnProbability(). |
|