HoloLens 2 Gait Training
The purpose of this project is to create gait training application.
Loading...
Searching...
No Matches
GaussianDistribution Class Reference

Takes two uniformly distributed deviates within the unit circle, and transforms them into two independently distributed normal deviates using the Box-Muller transformation. More...

Inheritance diagram for GaussianDistribution:
Inheritance graph
Collaboration diagram for GaussianDistribution:
Collaboration graph

Public Member Functions

 GaussianDistribution (int seed)
 
 GaussianDistribution ()
 
double RandomGauss (double mu=0, double sigma=1)
 Obtains normally (Gaussian) distrubuted random numbers, using the Box-Muller transformation. This transformation takes two uniformly distributed deviates within the unit circle, and transforms them into two independently distributed normal deviates. More...
 

Private Attributes

double u1
 
double u2
 
double temp1
 
double temp2
 

Detailed Description

Takes two uniformly distributed deviates within the unit circle, and transforms them into two independently distributed normal deviates using the Box-Muller transformation.

Definition at line 12 of file GaussianDistribution.cs.

Constructor & Destructor Documentation

◆ GaussianDistribution() [1/2]

GaussianDistribution.GaussianDistribution ( int  seed)
inline

Definition at line 19 of file GaussianDistribution.cs.

◆ GaussianDistribution() [2/2]

GaussianDistribution.GaussianDistribution ( )
inline

Definition at line 23 of file GaussianDistribution.cs.

Member Function Documentation

◆ RandomGauss()

double GaussianDistribution.RandomGauss ( double  mu = 0,
double  sigma = 1 
)
inline

Obtains normally (Gaussian) distrubuted random numbers, using the Box-Muller transformation. This transformation takes two uniformly distributed deviates within the unit circle, and transforms them into two independently distributed normal deviates.

Parameters
muThe mean of the distribution. Default is zero
sigmaThe standard deviation of the distribution. Default is one.
Returns

Definition at line 35 of file GaussianDistribution.cs.

Here is the caller graph for this function:

Field Documentation

◆ temp1

double GaussianDistribution.temp1
private

Definition at line 16 of file GaussianDistribution.cs.

◆ temp2

double GaussianDistribution.temp2
private

Definition at line 17 of file GaussianDistribution.cs.

◆ u1

double GaussianDistribution.u1
private

Definition at line 14 of file GaussianDistribution.cs.

◆ u2

double GaussianDistribution.u2
private

Definition at line 15 of file GaussianDistribution.cs.


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