magpie.randoms.stochastic_integer_weights

magpie.randoms.stochastic_integer_weights(weights)

Returns stochastic integer weights for an input weight. This is useful for point processes that require integer weights, where a non-integer weight can be achieved by superposition of many realisations.

Parameters
weightsarray

Input weights.

Returns
weights_SIarray

Stochastic integer weights.