IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
distribution.m File Reference

Detailed Description

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 Documentation

function distribution ( in  x,
in  no_points,
in  range,
in  wid 
)
Parameters
xData vector
no_points=100Number 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
Returns
[xa, ya]