statsmodels.tsa.statespace.simulation_smoother.SimulationSmoother.simulator#
- SimulationSmoother.simulator(nsimulations, rng=None)[source]#
Retrieve a simulator for the statespace model
- Parameters:
- nsimulations
int The number of observations to simulate.
- rng
int, array_likeofint,numpy.random.Generator,ornumpy.random.RandomState,optional If rng is None, a new
Generatoris created using fresh entropy from the operating system. If rng is an int or array of ints, a newGeneratoris created, seeded with rng. If rng is already aGeneratororRandomStateinstance, that instance is used.
- nsimulations
- Returns:
SimulationSmoothResultsObject holding the output of the simulation smoother.