Skip to content

Utilities

antori82 edited this page Oct 6, 2024 · 2 revisions

Kernel Density Estimation

A Kernel Density Estimator (KDE) is an object designed to allow evaluating Probability Density Functions (PDFs) from a set of sample data. It is useful to avoid considering as a reliable PDF one that is computed over a limited number of points.

Functions

SetData

This function sets the data over which the KDE will compute estimates.

Input:

  • NewData: a list of floats representing counts over categories or bins.

Evaluate

This function estimates the PDF value for a specific point.

Input:

  • Point: the point for which to estimate the probability.

GetPDF

This function returns a PDF over a set of points.

Input:

  • Min: a float representing the minimum value of the interval in which to evaluate the distribution;
  • Max: a float representing the maximum value of the interval in which to evaluate the distribution;
  • Points: the number of points in which to discretize the space.

Output:

  • Return value: a map of floats over floats. Keys represent the discretized interval points while values represent the corresponding probabilities.
Getting started
Automatic Speech Recognition
Natural Language Understanding
Databases
Probabilistic Graphical Models
Large Language Models
Text To Speech
Animation
Utilities
Clone this wiki locally