View source: R/tools.bin_width_estimator.R
bin_width_estimator | R Documentation |
Lenght of cell to compute an histogram
bin_width_estimator(X, method = "auto")
X |
[matrix] A matrix containing data, nrow = n_samples, ncol = n_features |
method |
[string] Method to estimate bin_width, values are "auto", "FD" (Friedman Draconis, robust over outliners) or "Sturges". If "auto" is used and if nrow(X) < 1000, "Sturges" is used, else "FD" is used. |
[vector] Lenght of bins
X = base::cbind( stats::rnorm( n = 2000 ) , stats::rexp(2000) )
## Friedman Draconis is used
binw_width = SBCK::bin_width_estimator( X , method = "auto" )
X = stats::rnorm( n = 500 )
## Sturges is used
binw_width = SBCK::bin_width_estimator( X , method = "auto" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.