Kde1d.fit

Kde1d.fit(self, x: numpy.ndarray, weights: numpy.ndarray = array([], dtype=float64)) None

Fits the kernel density estimate to data.

Parameters:
xndarray, shape (n,), dtype float

vector of observations

weightsndarray, shape (n,), dtype float

vector of weights for each observation (optional).