SourcePro 11.1 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Classes | |
class | Histogram |
Constructs and maintains a histogram of input data. More... | |
class | LeastSqFit |
Constructs a linear least squares fit to a straight line from input data. More... | |
class | RWRandInterface |
Abstract base class for RWTRand<Generator> . More... | |
class | RWTRand< Generator > |
Abstract base class from which the random number generator classes derive. More... | |
class | RWTRandUniform< Generator > |
Used to generate random numbers from a uniform distribution in an interval [a, b]. More... | |
class | RWTRandNormal< Generator > |
Used to generate random numbers from a normal distribution. More... | |
class | RWTRandExponential< Generator > |
Used to generate random numbers from an exponential distribution. More... | |
class | RWTRandGamma< Generator > |
Used to generate random numbers from a gamma distribution. More... | |
class | RWTRandPoisson< Generator > |
Used to generate random numbers from a Poisson distribution. More... | |
class | RWTRandBinomial< Generator > |
Used to generate random numbers from a binomial distribution. More... | |
class | RWRandGenerator |
Generates random numbers uniformly distributed over the interval [0, 1] . More... | |
class | RWRandGenMCG31M1 |
Generates random numbers uniformly distributed over the interval [0, 1] . More... | |
class | RWRandGenMCG59 |
Generates random numbers uniformly distributed over the interval [0, 1] . More... | |
class | RWRandGenBasicMLC |
Abstract base class for classes that generate random numbers uniformly distributed over the interval [0,1] . More... | |
class | RWRandGenMRG32K3A |
Generates random numbers uniformly distributed over the interval [0, 1] . More... | |
class | RWRandGenMTwist |
Generates random numbers uniformly distributed over the interval [0, 1] . More... | |
class | RWRandGenR250 |
Generates random numbers uniformly distributed over the interval [0, 1] . More... | |
Functions | |
double | beta (double w, double z) |
double | binomialPF (size_t m, size_t N, double p) |
double | exponentialPF (double x, double a) |
double | factorial (size_t n) |
double | gaussianPF (double x, double m, double s) |
double | logGamma (double x) |
double | lorentzianPF (double x, double m, double w) |
double | poissonPF (size_t n, double m) |
double | rwEpslon (double x) |
The Essential Math Statistics Classes provide random number generators for a variety of probability distributions.
double beta | ( | double | w, | |
double | z | |||
) |
double binomialPF | ( | size_t | m, | |
size_t | N, | |||
double | p | |||
) |
#include <rw/dstats.h>
The function binomialPF() returns the binomial probability coefficient. If an event has a probability p of occurring and we make N tries, binomialPF() returns the probability that the event will occur m times:
double exponentialPF | ( | double | x, | |
double | a | |||
) |
#include <rw/dstats.h>
Returns the exponential probability function. The quantity x / a has the probability distribution a exp(-ax).
double factorial | ( | size_t | n | ) | [inline] |
#include <rw/dstats.h>
Returns the factorial of n, which is written n!. Stores previously calculated factorials internally for speed.
double gaussianPF | ( | double | x, | |
double | m, | |||
double | s | |||
) |
#include <rw/dstats.h>
Returns the Gaussian probability function for Gaussian mean m and standard deviation s:
double logGamma | ( | double | x | ) |
double lorentzianPF | ( | double | x, | |
double | m, | |||
double | w | |||
) |
#include <rw/dstats.h>
Returns the Lorentzian probability function, where m is the mean of the distribution and w is the full width at half maximum of the distribution.
double poissonPF | ( | size_t | n, | |
double | m | |||
) |
#include <rw/dstats.h>
The Poisson distribution gives the probability of a certain integer number of unit rate Poisson random events occurring in a given time interval. The Poisson distribution represents an approximation to the binomial distribution for the special case where the average number of events is very much smaller than the possible number. The function poissonPF() returns the probability that a Poisson random event with Poisson mean m will occur, given n observations:
double rwEpslon | ( | double | x | ) |
#include <rw/dstats.h>
Returns an estimate of the machine roundoff error in units of x, typically 1. This is frequently used to determine whether a number is near 0 relative to other numbers of order x.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.