vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AP_LSystem::RandomIndex Class Reference

#include <randomindex.h>

Public Member Functions

 RandomIndex ()
 
void addProbability (double p)
 
unsigned int getRandomIndex ()
 

Static Public Member Functions

static void init ()
 

Detailed Description

Class for generating random index for stochastic rule selection

Constructor & Destructor Documentation

AP_LSystem::RandomIndex::RandomIndex ( )
inline

Constructor

Member Function Documentation

void AP_LSystem::RandomIndex::addProbability ( double  p)
inline

Add probability factor of rule.

Parameters
pprobability
unsigned int AP_LSystem::RandomIndex::getRandomIndex ( )
inline

Returns random index according to probability factor

Returns
random index
static void AP_LSystem::RandomIndex::init ( void  )
inlinestatic

Initialize random generator


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