gemlib.distributions.ContinuousTimeStateTransitionModel.sample

gemlib.distributions.ContinuousTimeStateTransitionModel.sample#

ContinuousTimeStateTransitionModel.sample(sample_shape=(), seed=None, name='sample', **kwargs)#

Generate samples of the specified shape.

Note that a call to sample() without arguments will generate a single sample.

Additional documentation from ContinuousTimeStateTransitionModel:

Samples n outcomes from the continuous time state transition model.

Parameters:
  • n (int) – The number of realisations of the Markov process to sample (currently ignored).

  • seed (int, optional) – The seed value for random number generation. Defaults to None.

  • sample_shape – 0D or 1D int32 Tensor. Shape of the generated samples.

  • seed – PRNG seed; see tfp.random.sanitize_seed for details.

  • name – name to give to the op.

  • **kwargs – Named arguments forwarded to subclass implementation.

Returns:

Sample(s) from the continuous time state transition model.

Returns:

a Tensor with prepended dimensions sample_shape.

Return type:

samples