Compute the number of classes for a histogram, the number of nodes of a binning grid, etc.
The rule values (vector or scalar).
rule.binning
returns a vector with the suggested number of bins
on each dimension.
rule.binning.default
returns rep(ceiling(a * nrow(x) ^ (1 / b)), d)
.
rule.svar
returns the suggested number of bins
for variogram estimation.
rule.svar.default
returns ceiling(a * (nrow(x)^2 / 4) ^ (1 / b))
.
The Rice Rule, \(m = \lceil 2 n^{1/3} \rceil,\)
is a simple alternative to Sturges's rule (nclass.Sturges
).