In R, there is a function called density()
. The syntax for the function is -
density(x, bw = "nrd0", adjust = 1, kernel = c("gaussian", "epanechnikov",
"rectangular", "triangular", "biweight","cosine", "optcosine"),
weights = NULL, window = kernel, width, give.Rkern = FALSE, n = 512,
from, to, cut = 3, na.rm = FALSE, …)
Of the different parameters, the ones I normally use are x
(a numeric vector from which the estimate is computed) & adjust
. I leave the other parameters to its default value (bw = "nrd0"
, n = 512
& kernel = "gaussian"
)
Is there a function in Python which takes the same (or equivalent) input AND returns the same output. The main output I am looking for are the 512 (since n = 512) x & y values.