R/rel_freq.calibration_simplex.R

Defines functions rel_freq.calibration_simplex rel_freq

#Function returning the relative frequency in each bin.

rel_freq = function(x) {
  UseMethod("rel_freq")
}

rel_freq.calibration_simplex = function(x) {
  return(x$freq/x$n_obs)
}

Try the CalSim package in your browser

Any scripts or data that you put into this service are public.

CalSim documentation built on March 25, 2021, 5:07 p.m.