UniformPdf Class Reference

Inheritance diagram for UniformPdf:

Inheritance graph
[legend]

List of all members.


Detailed Description

Uniform distribution over a hyper-rectangle.

Author:
Lawrence Murray <lawrence@indii.org>
Version:
Rev
Date:
Date

Serialization

This class supports serialization through the Boost.Serialization library.

Definition at line 21 of file UniformPdf.hpp.


Public Member Functions

 UniformPdf ()
 Default constructor.
 UniformPdf (const vector &lower, const vector &upper)
 Constructor.
 ~UniformPdf ()
 Destructor.
virtual UniformPdfoperator= (const UniformPdf &o)
 Assignment operator.
virtual void setDimensions (const unsigned int N, const bool preserve=false)
 Set the dimensionality of the distribution.
virtual const vectorgetExpectation ()
 Get the expected value of the distribution.
virtual const
symmetric_matrix
getCovariance ()
 Get the covariance of the distribution.
virtual vector sample ()
 Sample from the distribution.
virtual double densityAt (const vector &x)
 Calculate the density at a given point.

Constructor & Destructor Documentation

UniformPdf (  ) 

Default constructor.

Initialises the distribution with zero dimensions. This should generally only be used when the object is to be restored from a serialization.

Definition at line 6 of file UniformPdf.cpp.

UniformPdf ( const vector lower,
const vector upper 
)

Constructor.

Parameters:
lower Lower corner of the hyper-rectangle under the distribution.
upper Upper corner of the hyper-rectangle under the distribution.

Definition at line 11 of file UniformPdf.cpp.

~UniformPdf (  ) 

Destructor.

Definition at line 40 of file UniformPdf.cpp.


Member Function Documentation

UniformPdf & operator= ( const UniformPdf o  )  [virtual]

Assignment operator.

Both sides must have the same dimensionality.

Definition at line 20 of file UniformPdf.cpp.

void setDimensions ( const unsigned int  N,
const bool  preserve = false 
) [virtual]

Set the dimensionality of the distribution.

Parameters:
N Dimensionality of the distribution.
preserve True to preserve the current sufficient statistics of the distribution in the lower dimensional space, false if these may be discarded.

Implements Pdf.

Definition at line 44 of file UniformPdf.cpp.

const vector & getExpectation (  )  [virtual]

Get the expected value of the distribution.

Returns:
$\mathbf{\mu}$; expected value of the distribution.

Implements Pdf.

Definition at line 55 of file UniformPdf.cpp.

const symmetric_matrix & getCovariance (  )  [virtual]

Get the covariance of the distribution.

Returns:
$\Sigma$; covariance of the distribution.

Implements Pdf.

Definition at line 62 of file UniformPdf.cpp.

vector sample (  )  [virtual]

Sample from the distribution.

Returns:
A sample from the distribution.

Implements Pdf.

Definition at line 69 of file UniformPdf.cpp.

double densityAt ( const vector x  )  [virtual]

Calculate the density at a given point.

Parameters:
x $\mathbf{x}$; point at which to evaluate the density.
Returns:
$p(\mathbf{x})$; the density at $\mathbf{x}$.

Implements Pdf.

Definition at line 79 of file UniformPdf.cpp.


Generated on Wed Dec 17 15:11:58 2008 for dysii Dynamical Systems Library by  doxygen 1.5.3