think-bayes
Version:
An algorithm framework of probability and statistics for browser and Node.js environment.
24 lines (12 loc) • 447 B
Markdown
# EstimatedPdf(sample)
Represents a PDF estimated by KDE.
Estimates the density function based on a sample.
**@Params:**
| param | type | description |
|--------|-------|------------------|
| sample | array | sequence of data |
**@Methods:**
**Important:** This class inherits from [**Pdf**](../Pdf), so you can use all methods of the parent class.
## .density(x)
Evaluates this Pdf at x.
**@Returns:** float probability density