Imported modules
|
|
from SimPy.Simulation import *
from __future__ import generators
from random import Random, expovariate, uniform
import unittest
|
Functions
|
|
choose1d
choose2d
choose2dA
sum
|
|
choose1d
|
choose1d ( P, g )
return a random choice from a set j = 0..n-1
with probs held in list P[j]
g = random variable
call: next = choose1d(P,g)
|
|
choose2d
|
choose2d (
i,
P,
g,
)
return a random choice from a set j = 0..n-1
with probs held in list of lists P[j] (n by n)
using row i
g = random variable
call: next = choose2d(i,P,g)
|
|
choose2dA
|
choose2dA (
i,
P,
g,
)
return a random choice from a set j = 0..n-1
with probs held in list of lists P[j] (n by n)
using row i
g = random variable
call: next = choose2d(i,P,g)
|
|
sum
|
sum ( P )
Sum of the real vector P
|
Classes
|
|
|
|