Public Member Functions | Public Attributes

bio_expression::Integrate Class Reference

Class performing numerical integration relying on the Gauss-Hermite quadrature to compute

\[ \int_{-\infty}^{+\infty} f(\omega) d\omega. \]

. More...

Inheritance diagram for bio_expression::Integrate:
bio_expression::Expression

List of all members.

Public Member Functions

def __init__
def getExpression

Public Attributes

 function
 variable
 operatorIndex

Detailed Description

Class performing numerical integration relying on the Gauss-Hermite quadrature to compute

\[ \int_{-\infty}^{+\infty} f(\omega) d\omega. \]

.

As an example, the computation of a normal mixture of logit models is performed using the following syntax, where condprob is the conditional (logit) choice probability:

 omega = RandomVariable('omega')
 density = bioNormalPdf(omega) 
 result = Integrate(condprob * density,'omega')

Comments:


Constructor & Destructor Documentation

def bio_expression::Integrate::__init__ (   self,
  term,
  v 
)
Parameters:
termany valid bio_expression representing the expression to integrate
vname of the integration variable, previously defined using a bioExpression::RandomVariable statement.

Member Function Documentation

def bio_expression::Integrate::getExpression (   self )
Returns:
Return the string representation of the current expression

Reimplemented from bio_expression::Expression.


Member Data Documentation

Reimplemented from bio_expression::Expression.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables