estimatePDF

PURPOSE ^

estimates a PDF, using binned data

SYNOPSIS ^

function [bc,fhat,h] = estimatePDF(vals,nBins)

DESCRIPTION ^

estimates a PDF, using binned data

see "computational statistics handbook with matlab" book, pp266

parameters
vals: array of values
nBins: number of bins to use; if == 0 is provided, the number of bins is
chosen automatically (estimate using normal reference rule)

returns
bc: centers of the bin
fhat: prob of that bin
h: bin width (automatically chosen)


urut/jan05

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-Oct-2007 12:29:38 by m2html © 2003