![]() |
IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
|
Estimates the univariate distribution of a data vector.
Uses a "Gaussian lump" aka kernel to estimate the distribution of a data vector.
The lump aka kernel centered at each x(i) is given by the formula exp(-(xa-x(i)).^2/(2*wid^2)) .
Definition in file distribution.m.
Go to the source code of this file.
Functions | |
function | distribution (in x, in no_points, in range, in wid) |
function distribution | ( | in | x, |
in | no_points, | ||
in | range, | ||
in | wid | ||
) |
x | Data vector |
no_points=100 | Number of points in outputs. Similar to number of bins of a histogram. It is the resolution of the outputs. |
range=(autocalculated) | Initial and final x-axis points |
wid=str(x)/sqrt(10) | "Lump" width |