Kde1d.fit
- Kde1d.fit(self, x: numpy.ndarray[dtype=float64, shape=(*), order='C'], weights: numpy.ndarray[dtype=float64, shape=(*), order='C'] = array([], dtype=float64)) None
Fit the kernel density estimate to data.
- Parameters:
x (array_like) – Vector of observations to fit the density to.
weights (array_like, optional) – Vector of weights for individual observations. If not provided, all observations are weighted equally.
Notes
After calling this method, the object will be fitted and can be used for density evaluation, sampling, etc.