Skip to contents

All functions

calc_loc_scale_params()
Calculate location and scale parameters for a specified distribution so that it matches two specified quantiles
clean_ps_and_qs()
Clean up ps and qs provided by user: handle missing and unsorted values
d_ext_factory()
Extrapolate density function in a location-scale family matching specified quantiles.
duplicated_tol()
Identify duplicated values in a sorted numeric vector, where comparison is up to a specified numeric tolerance. If there is a run of values where each consecutive pair is closer together than the tolerance, all are labeled as duplicates even if not all values in the run are within the tolerance.
get_dup_run_inds()
Get indices of starts and ends of runs of duplicate values
make_d_fn()
Creates a function that evaluates the probability density function of an approximation to a distribution obtained by interpolating and extrapolating from a set of quantiles of the distribution.
make_p_fn()
Creates a function that evaluates the cumulative distribution function of an approximation to a distribution obtained by interpolating and extrapolating from a set of quantiles of the distribution.
make_q_fn()
Creates a function that evaluates the quantile function of an approximation to a distribution obtained by interpolating and extrapolating from a set of quantiles of the distribution.
make_r_fn()
Creates a function that generates random deviates from an approximation to a distribution obtained by interpolating and extrapolating from a set of quantiles of the distribution.
mono_Hermite_spline()
Create a polySpline object representing a monotonic Hermite spline interpolating a given set of points.
p_ext_factory()
Extrapolate cumulative distribution function in a location-scale family matching specified quantiles.
q_ext_factory()
Extrapolate quantile function in a location-scale family matching specified quantiles.
spline_cdf() spline_cdf_grid_interp() spline_cdf_direct()
Approximate density function, cdf, or quantile function on the interior of provided quantiles by representing the distribution as a sum of a discrete part at any duplicated qs and a continuous part for which the cdf is estimated using a monotonic Hermite spline. See details for more.
split_disc_cont_ps_qs()
Split ps and qs into those corresponding to discrete and continuous parts of a distribution.
step_interp_factory()
A factory that returns a function that performs linear interpolation, allowing for "steps" or discontinuities.
unique_tol()
Get unique values in a sorted numeric vector, where comparison is up to a specified numeric tolerance. If there is a run of values where each consecutive pair is closer together than the tolerance, all are labeled as corresponding to a single unique value even if not all values in the run are within the tolerance.