Class performing numerical integration relying on the Gauss-Hermite quadrature to compute
. More...
Public Member Functions | |
def | __init__ |
def | getExpression |
Public Attributes | |
function | |
variable | |
operatorIndex |
Class performing numerical integration relying on the Gauss-Hermite quadrature to compute
.
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:
omega = bioNormalDraws('omega') drawIterator('drawIter') result = Sum(condprob,'drawIter')
def bio_expression::Integrate::__init__ | ( | self, | |
term, | |||
v | |||
) |
term | any valid bio_expression representing the expression to integrate |
v | name of the integration variable, previously defined using a bioExpression::RandomVariable statement. |
def bio_expression::Integrate::getExpression | ( | self ) |
Reimplemented from bio_expression::Expression.
Reimplemented from bio_expression::Expression.