Biogeme: Python Library  2.5
Public Member Functions | Static Public Attributes | List of all members
bio_expression.Operator Class Reference

Generic class for an operator. More...

Public Member Functions

def getOpIndex (self, op)
 

Static Public Attributes

string num = 'numeric'
 
string var = 'variable'
 
string userexpr = 'UserExpression'
 
string userdraws = 'UserDraws'
 
string rv = 'randomVariable'
 
string param = 'beta'
 
string mcdraws = 'MCDraw'
 
string mcunifdraws = 'MCUnifDraw'
 
string normal = 'N(0,1)'
 
string uniform = 'U[0,1]'
 
string uniformSym = 'U[-1,1]'
 
 absOp
 
 negOp
 
 exp
 
 log
 
string bioNormalCdf = 'bioNormalCdf'
 
 add
 
 sub
 
 mul
 
 div
 
 power
 
 andOp
 
 orOp
 
 equal
 
 notEqual
 
 greater
 
 greaterEq
 
 less
 
 lessEq
 
 minOp
 
 maxOp
 
 mod
 
 sumOp
 
 prodOp
 
 integralOp
 
 derivativeOp
 
string monteCarloOp = 'MonteCarlo'
 
string monteCarloCVOp = 'MonteCarloControlVariate'
 
 elemOp
 
 enumOp
 
 logitOp
 
 loglogitOp
 
 multSumOp
 
 multProdOp
 
 bioNormalPdf
 
string mhOp = 'MH'
 
string bayesMeanOp = 'bioBayesNormalDraw'
 
string defineOp = 'define'
 
int MIN_ZEROOP_INDEX = 0
 
int MAX_ZEROOP_INDEX = 19
 
int MIN_UNOP_INDEX = 20
 
int MAX_UNOP_INDEX = 39
 
int MIN_BINOP_INDEX = 40
 
int MAX_BINOP_INDEX = 69
 
int MIN_ITERATOROP_INDEX = 70
 
int MAX_ITERATOROP_INDEX = 89
 
int UNDEF_OP = -1
 
dictionary operatorIndexDic
 

Detailed Description

Generic class for an operator.

Manages the IDs of the various operators.

Definition at line 10 of file bio_expression.py.

Member Data Documentation

dictionary bio_expression.Operator.operatorIndexDic
static
Initial value:
1 = {num:0, \
2  var:1, \
3  param:2, \
4  normal:3, \
5  uniform:4, \
6  rv:5, \
7  uniformSym:6, \
8  userexpr:7, \
9  mcdraws:8, \
10  mcunifdraws:9, \
11  userdraws:10, \
12  absOp:20, negOp:21, \
13  exp:30, log:31, bioNormalCdf: 33, monteCarloOp: 34,\
14  add:40, sub:41, mul:42, div:43, power:44, \
15  andOp:45, orOp:46, equal:47, notEqual:48, \
16  greater:49, greaterEq:50, less:51, lessEq:52, \
17  minOp:53, maxOp:54, mod:55, \
18  sumOp:70, prodOp:71, \
19  elemOp:90, enumOp:91, integralOp:92, derivativeOp:93, \
20  defineOp:94, logitOp:95, bioNormalPdf:96, multSumOp:97, multProdOp:98, mhOp:99, bayesMeanOp:100,monteCarloCVOp: 101,loglogitOp:102 }

Definition at line 52 of file bio_expression.py.


The documentation for this class was generated from the following file:
Copyright 2016 Michel Bierlaire