| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
base.parameterizedobject.ParameterizedObject --+
|
base.functionfamilies.OutputFn --+
|
PoissonSample
Simulate Poisson-distributed activity with specified mean values.
This output function interprets each matrix value as the (potentially scaled) rate of a Poisson process and replaces it with a sample from the appropriate Poisson distribution.
To allow the matrix to contain values in a suitable range (such as [0.0,1.0]), the input matrix is scaled by the parameter in_scale, and the baseline_rate is added before sampling. After sampling, the output value is then scaled by out_scale. The function thus performs this transformation:
x <- P(in_scale * x + baseline_rate) * out_scale
where x is a matrix value and P(r) samples from a Poisson distribution with rate r.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
in_scale = <topo.base.parameterclasses.Number object at 0x9db9Amount by which to scale the input. |
|||
baseline_rate = <topo.base.parameterclasses.Number object at 0Constant to add to the input after scaling, resulting in a baseline Poisson process rate. |
|||
out_scale = <topo.base.parameterclasses.Number object at 0x9dbAmount by which to scale the output (e.g. |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
|||
in_scaleAmount by which to scale the input.
|
baseline_rateConstant to add to the input after scaling, resulting in a baseline Poisson process rate.
|
out_scaleAmount by which to scale the output (e.g. 1.0/in_scale).
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Thu Feb 21 15:25:07 2008 | http://epydoc.sourceforge.net |