sshist: Optimal number of bins of a histogram

Description Usage Arguments Value Author(s) References

Description

Function ‘sshist’ returns the optimal number of bins of a histogram. The optimization principle is L2 loss function. See ref. for details.

Usage

1
sshist(x)

Arguments

x

Sample data. x_min The data range within which the optimization applies to. Default value is min(x). x_max The data range within which the optimization applies to. Default value is max(x). A vector that specifies number of divisions (bins). The optimal number of bins is selected from the elements of N. Default value is N = 2:50.

Value

Output argument

Author(s)

Author Hideaki Shimazaki shimazaki at jhu.edu 2006 Author Hideaki Shimazaki

References

Shimazaki and Shinomoto, Neural Comput. 19(6), 1503-1527, 2007


hansoleorka/myR documentation built on May 17, 2019, 2:29 p.m.