TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
ExponentialDistribution Class Reference

Exponential probability distribution. More...

#include <Distribution.h>

Inheritance diagram for ExponentialDistribution:
Collaboration diagram for ExponentialDistribution:

Public Member Functions

 ExponentialDistribution ()
 ExponentialDistribution (real lambda)
 Create an exponential distribution with parameter lambda.
 ExponentialDistribution (real mean, real var)
virtual ~ExponentialDistribution ()
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
real m
 mean

Detailed Description

Exponential probability distribution.

Definition at line 129 of file Distribution.h.

Constructor & Destructor Documentation

◆ ExponentialDistribution() [1/3]

ExponentialDistribution::ExponentialDistribution ( )
inline

Definition at line 133 of file Distribution.h.

◆ ExponentialDistribution() [2/3]

ExponentialDistribution::ExponentialDistribution ( real lambda)
inline

Create an exponential distribution with parameter lambda.

Definition at line 135 of file Distribution.h.

◆ ExponentialDistribution() [3/3]

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

Definition at line 139 of file Distribution.h.

Here is the call graph for this function:

◆ ~ExponentialDistribution()

virtual ExponentialDistribution::~ExponentialDistribution ( )
inlinevirtual

Definition at line 144 of file Distribution.h.

Member Function Documentation

◆ generate()

real ExponentialDistribution::generate ( )
virtual

Implements Distribution.

Definition at line 98 of file Distribution.cpp.

Here is the call graph for this function:

◆ pdf()

real ExponentialDistribution::pdf ( real x)
virtual

Implements Distribution.

Definition at line 104 of file Distribution.cpp.

◆ setMean()

virtual void ExponentialDistribution::setMean ( real mean)
inlinevirtual

Implements ParametricDistribution.

Definition at line 149 of file Distribution.h.

◆ setVariance()

virtual void ExponentialDistribution::setVariance ( real var)
inlinevirtual

Implements ParametricDistribution.

Definition at line 147 of file Distribution.h.

Member Data Documentation

◆ l

real ExponentialDistribution::l

lambda

Definition at line 131 of file Distribution.h.

◆ m

real ExponentialDistribution::m

mean

Definition at line 132 of file Distribution.h.


The documentation for this class was generated from the following files:
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/libs/learning/Distribution.h
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/libs/learning/Distribution.cpp