GClasses
GClasses::GPoissonDistribution Class Reference

Detailed Description

The Poisson distribution.

#include <GDistribution.h>

Inheritance diagram for GClasses::GPoissonDistribution:
GClasses::GUnivariateDistribution GClasses::GDistribution

Public Member Functions

 GPoissonDistribution ()
 
virtual ~GPoissonDistribution ()
 
virtual bool isDiscrete () const
 Returns true. More...
 
virtual bool isSupported (double x) const
 Returns true iff x rounds to a non-negative value. More...
 
virtual double likelihood (double x)
 See the comment for GUnivariateDistribution::likelihood. More...
 
virtual double logLikelihood (double x)
 See the comment for GUnivariateDistribution::logLikelihood. More...
 
double mean () const
 Returns the mean. More...
 
virtual double mode () const
 Returns the mode (which is also the mean) More...
 
void setParams (double rate)
 Sets the parameters of this distribution. More...
 
virtual Type type () const
 Returns the type of distribution. More...
 
double variance () const
 Returns the variance. More...
 
- Public Member Functions inherited from GClasses::GUnivariateDistribution
 GUnivariateDistribution ()
 
virtual ~GUnivariateDistribution ()
 

Protected Attributes

double m_rate
 

Additional Inherited Members

- Public Types inherited from GClasses::GUnivariateDistribution

Constructor & Destructor Documentation

GClasses::GPoissonDistribution::GPoissonDistribution ( )
inline
virtual GClasses::GPoissonDistribution::~GPoissonDistribution ( )
inlinevirtual

Member Function Documentation

virtual bool GClasses::GPoissonDistribution::isDiscrete ( ) const
inlinevirtual

Returns true.

Implements GClasses::GUnivariateDistribution.

virtual bool GClasses::GPoissonDistribution::isSupported ( double  x) const
inlinevirtual

Returns true iff x rounds to a non-negative value.

Implements GClasses::GUnivariateDistribution.

virtual double GClasses::GPoissonDistribution::likelihood ( double  x)
virtual
virtual double GClasses::GPoissonDistribution::logLikelihood ( double  x)
virtual
double GClasses::GPoissonDistribution::mean ( ) const
inline

Returns the mean.

virtual double GClasses::GPoissonDistribution::mode ( ) const
inlinevirtual

Returns the mode (which is also the mean)

Implements GClasses::GUnivariateDistribution.

void GClasses::GPoissonDistribution::setParams ( double  rate)
inline

Sets the parameters of this distribution.

virtual Type GClasses::GPoissonDistribution::type ( ) const
inlinevirtual

Returns the type of distribution.

Implements GClasses::GUnivariateDistribution.

double GClasses::GPoissonDistribution::variance ( ) const
inline

Returns the variance.

Member Data Documentation

double GClasses::GPoissonDistribution::m_rate
protected