|
|
Content | Prev | Next | Down |
| Syntax |
[y, ry] = shist(x, K) |
[y, ry] = shist(x, K, relativeFrequencies) | |
| See Also | sbar , splot , spquit |
shist function
will determine the bin count automatically. If present,
the argument relativeFrequencies, must equal
true, and specifies that relative frequencies should
be plotted.
The returned value y is the calculated frequency vector,
and the returned argument ry is the relative frequency vector.
r = snormal(128000,1)
shist(r, 40);
SigmaPlot will create a histogram plot for the
normal distribution, r.
If you continue the example above by entering
shist(r, 30, true);
SigmaPlot will create a histogram plot for the relative frequencies
and your notebook will no look like: