get_optimal_binwidth: Calculate the optimal binwidths for histograms based on...

View source: R/get_optimal_binwidth.R

get_optimal_binwidthR Documentation

Calculate the optimal binwidths for histograms based on several methods

Description

Calculate the optimal binwidths for histograms based on several methods

Usage

get_optimal_binwidth(data, method = c("FDR", "SNRR", "SF", "RR", "DF"))

Arguments

data

A numeric vector that is used to construct histograms

method

Which method should be used to get the optimal binwidths. Valid inputs are FDR, SNRR, SF, RR and DF. See details for more information regarding the different approaches

Value

A value that represents the optimal binwidth based on data and chosen method

Examples

get_optimal_binwidth(rnorm(100), method = "SF")

pernille267/commutability.selectivity documentation built on July 20, 2022, 9:11 a.m.