bin_data: Generate histogram of the input vector

View source: R/bin_data.R

bin_dataR Documentation

Generate histogram of the input vector

Description

Generate histogram of the input vector

Usage

bin_data(x, lower_bound, upper_bound, n_bins = 1000, excess_bins = TRUE)

Arguments

x

The privacy parameter rho

lower_bound

The lower bound of the data

upper_bound

The upper bound of the data

n_bins

The number of bins. (Default: 1000)

excess_bins

Do you want to include excess bins from -Inf to lower_bound and upper_bound to Inf? (Default: TRUE)

Value

Histogram of the data with corresponding x values.


mneunhoe/dpBootstrap documentation built on Feb. 10, 2023, 6:31 a.m.