#include <ConditionalGaussianDistribution.h>
Inheritance diagram for PLearn::ConditionalGaussianDistribution:
Public Types | |
typedef ConditionalDistribution | inherited |
Public Member Functions | |
ConditionalGaussianDistribution () | |
virtual void | build () |
**** SUBCLASS WRITING: **** This method should be redefined in subclasses, to just call inherited::build() and then build_() | |
virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
Transforms a shallow copy into a deep copy. | |
PLEARN_DECLARE_OBJECT (ConditionalGaussianDistribution) | |
Declares name and deepCopy methods. | |
virtual void | train (VMat training_set) |
trains the model | |
virtual double | log_density (const Vec &x) const |
return log of probability density log(p(x)) | |
virtual double | density (const Vec &x) const |
return probability density p(x) [ default version returns exp(log_density(x)) ] | |
virtual double | survival_fn (const Vec &x) const |
return survival fn = P(X>x) | |
virtual double | cdf (const Vec &x) const |
return survival fn = P(X<x) | |
virtual Vec | expectation () const |
return E[X] | |
virtual Mat | variance () const |
return Var[X] | |
virtual void | generate (Vec &x) const |
return a pseudo-random sample generated from the distribution. | |
virtual void | setInput (const Vec &input) |
Set the input part before using the inherited methods. | |
Public Attributes | |
Vec | mean |
Mat | covariance |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declares this class' options. |
|
Reimplemented from PLearn::ConditionalDistribution. Definition at line 55 of file ConditionalGaussianDistribution.h. Referenced by ConditionalGaussianDistribution(). |
|
Definition at line 47 of file ConditionalGaussianDistribution.cc. References inherited. |
|
**** SUBCLASS WRITING: **** This method should be redefined in subclasses, to just call inherited::build() and then build_()
Reimplemented from PLearn::Distribution. Definition at line 77 of file ConditionalGaussianDistribution.cc. |
|
return survival fn = P(X<x)
Reimplemented from PLearn::Distribution. Definition at line 104 of file ConditionalGaussianDistribution.cc. References PLERROR. |
|
Declares this class' options.
Reimplemented from PLearn::Distribution. Definition at line 57 of file ConditionalGaussianDistribution.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
return probability density p(x) [ default version returns exp(log_density(x)) ]
Reimplemented from PLearn::Distribution. Definition at line 98 of file ConditionalGaussianDistribution.cc. References PLearn::exp(), log_density(), and x. |
|
return E[X]
Reimplemented from PLearn::Distribution. Definition at line 107 of file ConditionalGaussianDistribution.cc. References mean. |
|
return a pseudo-random sample generated from the distribution.
Reimplemented from PLearn::Distribution. Definition at line 117 of file ConditionalGaussianDistribution.cc. References covariance, mean, PLearn::multivariate_normal(), PLERROR, and x. |
|
return log of probability density log(p(x))
Reimplemented from PLearn::Distribution. Definition at line 95 of file ConditionalGaussianDistribution.cc. References PLERROR. Referenced by density(). |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::ConditionalDistribution. Definition at line 90 of file ConditionalGaussianDistribution.cc. |
|
Declares name and deepCopy methods.
|
|
Set the input part before using the inherited methods.
Reimplemented from PLearn::ConditionalDistribution. Definition at line 128 of file ConditionalGaussianDistribution.cc. References mean, PLearn::TVec< T >::resize(), and PLearn::TVec< T >::size(). |
|
return survival fn = P(X>x)
Reimplemented from PLearn::Distribution. Definition at line 101 of file ConditionalGaussianDistribution.cc. References PLERROR. |
|
trains the model
Reimplemented from PLearn::Distribution. Definition at line 83 of file ConditionalGaussianDistribution.cc. References PLearn::computeMeanAndCovar(), covariance, mean, PLearn::TMat< T >::resize(), PLearn::TVec< T >::resize(), and PLearn::VMat::width(). |
|
return Var[X]
Reimplemented from PLearn::Distribution. Definition at line 112 of file ConditionalGaussianDistribution.cc. References covariance. |
|
Definition at line 53 of file ConditionalGaussianDistribution.h. Referenced by generate(), train(), and variance(). |
|
Definition at line 52 of file ConditionalGaussianDistribution.h. Referenced by expectation(), generate(), setInput(), and train(). |