Kde1d.simulate

Kde1d.simulate(self, n: int, seeds: collections.abc.Sequence[int] = [], check_fitted: bool = True) numpy.ndarray[dtype=float64, shape=(*), order='C']

Simulate data from the fitted density.

Generates random samples from the kernel density estimate.

Parameters:
  • n (int) – Number of observations to simulate.

  • seeds (list of int, optional) – Optional vector of random seeds for reproducibility.

  • check_fitted (bool, optional) – Whether to check if the model is fitted before simulation. Default is True.

Returns:

array_like – Vector of simulated observations from the kernel density.