def sample(self, locations=None, size=()):
    '\n        Draw samples from the filtering/smoothing posterior.\n\n        If nothing is specified, a single sample is drawn (supported on self.locations).\n        If locations are specified, the samples are drawn on those locations.\n        If size is specified, more than a single sample is drawn.\n\n        Parameters\n        ----------\n        locations : array_like, optional\n            Locations on which the samples are wanted. Default is none, which implies that\n            self.location is used.\n        size : int or tuple of ints, optional\n            Indicates how many samples are drawn. Default is an empty tuple, in which case\n            a single sample is returned.\n\n        Returns\n        -------\n        numpy.ndarray\n            Drawn samples. If size has shape (A1, ..., Z1), locations have shape (L,),\n            and the state space model has shape (A2, ..., Z2), the output has\n            shape (A1, ..., Z1, L, A2, ..., Z2).\n            For example: size=4, len(locations)=4, dim=3 gives shape (4, 4, 3).\n\n        '
    raise NotImplementedError('Sampling not implemented.')
Draw samples from the filtering/smoothing posterior.

If nothing is specified, a single sample is drawn (supported on self.locations).
If locations are specified, the samples are drawn on those locations.
If size is specified, more than a single sample is drawn.

Parameters
----------
locations : array_like, optional
    Locations on which the samples are wanted. Default is none, which implies that
    self.location is used.
size : int or tuple of ints, optional
    Indicates how many samples are drawn. Default is an empty tuple, in which case
    a single sample is returned.

Returns
-------
numpy.ndarray
    Drawn samples. If size has shape (A1, ..., Z1), locations have shape (L,),
    and the state space model has shape (A2, ..., Z2), the output has
    shape (A1, ..., Z1, L, A2, ..., Z2).
    For example: size=4, len(locations)=4, dim=3 gives shape (4, 4, 3).
def sample(self, locations=None, size=()):
    '\n        Draw samples from the filtering/smoothing posterior.\n\n        If nothing is specified, a single sample is drawn (supported on self.locations).\n        If locations are specified, the samples are drawn on those locations.\n        If size is specified, more than a single sample is drawn.\n\n        Parameters\n        ----------\n        locations : array_like, optional\n            Locations on which the samples are wanted. Default is none, which implies that\n            self.location is used.\n        size : int or tuple of ints, optional\n            Indicates how many samples are drawn. Default is an empty tuple, in which case\n            a single sample is returned.\n\n        Returns\n        -------\n        numpy.ndarray\n            Drawn samples. If size has shape (A1, ..., Z1), locations have shape (L,),\n            and the state space model has shape (A2, ..., Z2), the output has\n            shape (A1, ..., Z1, L, A2, ..., Z2).\n            For example: size=4, len(locations)=4, dim=3 gives shape (4, 4, 3).\n\n        '
    raise NotImplementedError('Sampling not implemented.')