Skip to main content
Module

x/simplestatistics/index.js>kde

simple statistics for node & browser javascript
Go to Latest
function kde
import { kde } from "https://deno.land/x/simplestatistics@v7.7.5/index.js";

Kernel density estimation is a useful tool for, among other things, estimating the shape of the underlying probability distribution from a sample.

Parameters

X

sample values

kernel

The kernel function to use. If a function is provided, it should return non-negative values and integrate to 1. Defaults to 'gaussian'.

bandwidthMethod

The "bandwidth selection" method to use, or a fixed bandwidth value. Defaults to "nrd", the commonly-used "normal reference distribution" rule-of-thumb.