Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

GaussRandomFun Class Reference

#include <RandomFuns.h>

Inheritance diagram for GaussRandomFun:

Inheritance graph
[legend]
Collaboration diagram for GaussRandomFun:

Collaboration graph
[legend]
List of all members.

Detailed Description

A FloatFun that returns a gaussian distributed value from a random number.

Definition at line 98 of file RandomFuns.h.

Public Member Functions

 GaussRandomFun (const FloatFun &rnd_, double mean_, double sigma_, const char *name_=0)
 GaussRandomFun (const FloatFun &rnd_, double mean_, double sigma_, const std::string &name_)
 Constructor from a C++ string.

virtual Float_FF operator() () const
 Returns a GaussRandom number that depends on seed() and index.

virtual const FillIteratorgetIterator () const
 Returns pointer to iterator, if any.


Protected Member Functions

virtual ~GaussRandomFun ()
 Protected destructor ensures creation on the heap.


Protected Attributes

const FloatFunrnd
 The random function.

double mean
 The mean value.

double sigma


Constructor & Destructor Documentation

GaussRandomFun::GaussRandomFun const FloatFun rnd_,
double  mean_,
double  sigma_,
const char *  name_ = 0
[explicit]
 

Parameters:
rnd_  The random function
mean_  The mean value
sigma_  The mean value
name_  The object's name

Definition at line 106 of file RandomFuns.C.

GaussRandomFun::GaussRandomFun const FloatFun rnd_,
double  mean_,
double  sigma_,
const std::string &  name_
 

Constructor from a C++ string.

Parameters:
rnd_  The random function
mean_  The mean value
sigma_  The mean value
name_  The object's name

Definition at line 115 of file RandomFuns.C.


Member Data Documentation

double GaussRandomFun::sigma [protected]
 

The sigma value

Definition at line 121 of file RandomFuns.h.

Referenced by operator()().


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 12:54:37 2006 for SFH by doxygen 1.3.2