ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

EmpiricalRandomVariable Class Reference

#include <ranvar.h>

Inheritance diagram for EmpiricalRandomVariable:

RandomVariable TclObject List of all members.

Public Member Functions

virtual double value ()
virtual double interpolate (double u, double x1, double y1, double x2, double y2)
virtual double avg ()
 EmpiricalRandomVariable ()
doubleminCDF ()
doublemaxCDF ()
int loadCDF (const char *filename)

Protected Member Functions

int command (int argc, const char *const *argv)
int lookup (double u)

Protected Attributes

double minCDF_
double maxCDF_
int interpolation_
int numEntry_
int maxEntry_
CDFentrytable_

Constructor & Destructor Documentation

EmpiricalRandomVariable::EmpiricalRandomVariable  
 


Member Function Documentation

virtual double EmpiricalRandomVariable::avg   [inline, virtual]
 

Implements RandomVariable.

int EmpiricalRandomVariable::command int    argc,
const char *const *    argv
[protected, virtual]
 

Reimplemented from RandomVariable.

double EmpiricalRandomVariable::interpolate double    u,
double    x1,
double    y1,
double    x2,
double    y2
[virtual]
 

int EmpiricalRandomVariable::loadCDF const char *    filename
 

int EmpiricalRandomVariable::lookup double    u [protected]
 

double& EmpiricalRandomVariable::maxCDF   [inline]
 

double& EmpiricalRandomVariable::minCDF   [inline]
 

double EmpiricalRandomVariable::value   [virtual]
 

Implements RandomVariable.


Member Data Documentation

int EmpiricalRandomVariable::interpolation_ [protected]
 

double EmpiricalRandomVariable::maxCDF_ [protected]
 

int EmpiricalRandomVariable::maxEntry_ [protected]
 

double EmpiricalRandomVariable::minCDF_ [protected]
 

int EmpiricalRandomVariable::numEntry_ [protected]
 

CDFentry* EmpiricalRandomVariable::table_ [protected]
 


The documentation for this class was generated from the following files:
This document is generated by doxygen.