Skip to contents

A helper function for the S3 method fit_uniform

Usage

fit_uniform_helper(
  x,
  interval_start,
  interval_end,
  interval_midpoint,
  metric = c("mle", "jaccard", "intersection", "ks", "mse", "chisq")
)

Arguments

x

numeric vector representing the density of a histogram

interval_start

starting coordinates for the bins

interval_end

ending coordinates for the bins

interval_midpoint

bin midpoints

metric

one of mle, jaccard, intersection, ks, mse, chisq

Value

a list with the following data

par

a character string denoting the region_id of the Histogram

dist

the distribution name

metric

the metric used to fit the distribution

value

the fitted value of the metric function

dens

a function that returns the density of the fitted distribution