#include <SBinomialDist.h>
Inherits SProbabilityDist.
Inheritance diagram for SBinomialDist:

Public Types | |
| enum | Type {  CONST, UNIFORM, GEOMETRIC, BINOMIAL, POISSON, EXPONENTIAL, BURSTY, SELFSIMILAR, NORMAL, PARETO }  | 
Public Methods | |
| SBinomialDist (int n, double p) | |
| SBinomialDist (const SBinomialDist &rU) | |
| virtual double | getValue () | 
| virtual Type | getType () const | 
| virtual double | getExpectation () const | 
Protected Attributes | |
| int | _n | 
| double | _p | 
Static Protected Attributes | |
| leda_random_source | _rndSrc | 
      
  | 
  
| 
 Type of probability distribution: (CONST states that result is always the same, i.e. constant)  | 
  
      
  | 
  ||||||||||||
| 
 This class generates binomial distributed random values which are created with the rejection method Note that this binomial distribution is created with the number of bernoulli variables and a probability  | 
  
      
  | 
  
| 
 Copy constructor  | 
  
      
  | 
  
| 
 
 Implements SProbabilityDist.  | 
  
      
  | 
  
| 
 Get type of probability distribution 
 Implements SProbabilityDist.  | 
  
      
  | 
  
| 
 Get a binomial distributed random value 
 
 Implements SProbabilityDist.  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
1.2.18