freedman_diaconis_hist_bins: Freedman–Diaconis Histogram Binning

freedman_diaconis_hist_binsR Documentation

Freedman–Diaconis Histogram Binning

Description

Uses the Freedman–Diaconis rule for optimal histogram binning. Also see: https://stats.stackexchange.com/questions/798/calculating-optimal-number-of-bins-in-a-histogram/862#862

Usage

freedman_diaconis_hist_bins(vec)

Arguments

col

A numeric/integer vector

num_dp

The numeric of decimal places to round the mean to.

Value

The Freedman-Diaconis bins


gfleetwood/sansor documentation built on Nov. 23, 2022, 10:31 a.m.