Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Files | Functions

Statistics Library
[Other]

Files

file  stats.h
 

Statistics functions for ROBOTC.


Functions

float erf (float z)
float Phi (float z)
float Phi (float z, float mu, float sigma)
float gaussian ()
float gaussian (float mu, float sigma)

Detailed Description

Statistics Library


Function Documentation

float erf ( float  z )

Error Function, subject to catastrophic cancellation when z is very close to 0

Parameters:
zthe number to be, ehm, error checked.
Returns:
the value

Definition at line 42 of file stats.h.

float gaussian ( float  mu,
float  sigma 
)

Definition at line 92 of file stats.h.

float gaussian (  )

Random number with standard Gaussian distribution

Returns:
random number with standard Gaussian distribution

Definition at line 85 of file stats.h.

float Phi ( float  z,
float  mu,
float  sigma 
)

Cumulative normal distribution with mean mu and std deviation sigma

Parameters:
zthe number to check
mumean value for x
sigmastd dev for x
Returns:
the probability

Definition at line 76 of file stats.h.

float Phi ( float  z )

Cumulative normal distribution

Parameters:
zthe number to check
Returns:
the probability
Examples:
stats-test1.c.

Definition at line 65 of file stats.h.