MATLAB统计工具箱提供了ecdf和ecdfhist函数绘制频率直方图,就是经验分析。
GAUSS
Computes and graphs a frequency histogram for a vector. The actual frequencies are plotted for each category.
Library
pgraph
Format
{ b,m,freq } = hist(x,v);
Input
x
Mx1 vector of data.
v
Nx1 vector, the breakpoints to be used to compute the frequencies,
or
scalar, the number of categories.
Output
b
Px1 vector, the breakpoints used for each category.
m
Px1 vector, the midpoints of each category.
freq
Px1 vector of computed frequency counts.