bluecellulab.cell.random¶
Contains probability distributions.
Functions
|
Sample N variates from a gamma distribution with parameters shape = a, scale = b using the NEURON random number generator rng. |
- bluecellulab.cell.random.gamma(rng, a, b, N=1)[source]¶
Sample N variates from a gamma distribution with parameters shape = a, scale = b using the NEURON random number generator rng.
Uses the algorithm by Marsaglia and Tsang 2001.
- Parameters:
rng (
HocObject)a (
float)b (
float)N (
int)
- Return type:
HocObject