RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GeneratorWNoise Class Reference

#include <gen_whitenoise.h>

Inheritance diagram for GeneratorWNoise:
Generator

Public Member Functions

 GeneratorWNoise ()
 
 GeneratorWNoise (double variance)
 
 ~GeneratorWNoise ()
 
void init (double variance)
 
double get ()
 
void setVariance (double var)
 
- Public Member Functions inherited from Generator
 Generator ()
 
 ~Generator ()
 
void clear ()
 
void init ()
 
double get ()
 
double getOne ()
 
int numSamples () const
 
int getIndex () const
 
void setIndex (int value)
 

Protected Attributes

double variance
 
double s
 
double u1
 
double u2
 
double v1
 
double v2
 
double x
 
double y
 
const gsl_rng_type * T
 
gsl_rng * r
 
gsl_rng * genstate
 
- Protected Attributes inherited from Generator
std::vector< double > wave
 
int index
 
int numsamples
 
double dt
 

Detailed Description

Definition at line 25 of file gen_whitenoise.h.

Constructor & Destructor Documentation

GeneratorWNoise::GeneratorWNoise()

Definition at line 26 of file gen_whitenoise.cpp.

GeneratorWNoise::GeneratorWNoise(double variance)

Definition at line 45 of file gen_whitenoise.cpp.

GeneratorWNoise::~GeneratorWNoise()

Definition at line 64 of file gen_whitenoise.cpp.

Member Function Documentation

double GeneratorWNoise::get()

Definition at line 87 of file gen_whitenoise.cpp.

void GeneratorWNoise::init(double variance)

Definition at line 69 of file gen_whitenoise.cpp.

void GeneratorWNoise::setVariance(double var)

Definition at line 99 of file gen_whitenoise.cpp.

Member Data Documentation

gsl_rng* GeneratorWNoise::genstate
protected

Definition at line 51 of file gen_whitenoise.h.

gsl_rng* GeneratorWNoise::r
protected

Definition at line 50 of file gen_whitenoise.h.

double GeneratorWNoise::s
protected

Definition at line 42 of file gen_whitenoise.h.

const gsl_rng_type* GeneratorWNoise::T
protected

Definition at line 49 of file gen_whitenoise.h.

double GeneratorWNoise::u1
protected

Definition at line 43 of file gen_whitenoise.h.

double GeneratorWNoise::u2
protected

Definition at line 44 of file gen_whitenoise.h.

double GeneratorWNoise::v1
protected

Definition at line 45 of file gen_whitenoise.h.

double GeneratorWNoise::v2
protected

Definition at line 46 of file gen_whitenoise.h.

double GeneratorWNoise::variance
protected

Definition at line 41 of file gen_whitenoise.h.

double GeneratorWNoise::x
protected

Definition at line 47 of file gen_whitenoise.h.

double GeneratorWNoise::y
protected

Definition at line 48 of file gen_whitenoise.h.


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