TORCS  1.3.9
The Open Racing Car Simulator
LaplacianDistribution Class Reference

Laplacian probability distribution. More...

#include <Distribution.h>

Inheritance diagram for LaplacianDistribution:
Collaboration diagram for LaplacianDistribution:

Public Member Functions

 LaplacianDistribution ()
 
 LaplacianDistribution (real lambda)
 Create a Laplacian distribution with parameter lambda. More...
 
 LaplacianDistribution (real mean, real var)
 
virtual ~LaplacianDistribution ()
 
virtual real generate ()
 
virtual real pdf (real x)
 
virtual void setVariance (real var)
 
virtual void setMean (real mean)
 
- Public Member Functions inherited from ParametricDistribution
 ParametricDistribution ()
 
virtual ~ParametricDistribution ()
 
- Public Member Functions inherited from Distribution
 Distribution ()
 
virtual ~Distribution ()
 

Public Attributes

real l
 lambda More...
 
real m
 mean More...
 

Detailed Description

Laplacian probability distribution.

Definition at line 103 of file Distribution.h.

Constructor & Destructor Documentation

◆ LaplacianDistribution() [1/3]

LaplacianDistribution::LaplacianDistribution ( )
inline

Definition at line 107 of file Distribution.h.

◆ LaplacianDistribution() [2/3]

LaplacianDistribution::LaplacianDistribution ( real  lambda)
inline

Create a Laplacian distribution with parameter lambda.

Definition at line 109 of file Distribution.h.

◆ LaplacianDistribution() [3/3]

LaplacianDistribution::LaplacianDistribution ( real  mean,
real  var 
)
inline

Definition at line 114 of file Distribution.h.

Here is the call graph for this function:

◆ ~LaplacianDistribution()

virtual LaplacianDistribution::~LaplacianDistribution ( )
inlinevirtual

Definition at line 119 of file Distribution.h.

Member Function Documentation

◆ generate()

real LaplacianDistribution::generate ( )
virtual

Implements Distribution.

Definition at line 78 of file Distribution.cpp.

Here is the call graph for this function:

◆ pdf()

real LaplacianDistribution::pdf ( real  x)
virtual

Implements Distribution.

Definition at line 93 of file Distribution.cpp.

◆ setMean()

virtual void LaplacianDistribution::setMean ( real  mean)
inlinevirtual

Implements ParametricDistribution.

Definition at line 124 of file Distribution.h.

◆ setVariance()

virtual void LaplacianDistribution::setVariance ( real  var)
inlinevirtual

Implements ParametricDistribution.

Definition at line 122 of file Distribution.h.

Member Data Documentation

◆ l

real LaplacianDistribution::l

lambda

Definition at line 105 of file Distribution.h.

◆ m

real LaplacianDistribution::m

mean

Definition at line 106 of file Distribution.h.


The documentation for this class was generated from the following files: