getECDF: Estimate the empirical density and return it

View source: R/fcn_misc.R

getECDFR Documentation

Estimate the empirical density and return it

Description

Estimate the empirical density and return it

Usage

getECDF(samples, y_eval = (1:100)/100)

Arguments

samples

Vector of input values (samples from the distribution)

y_eval

Vector of points where CDF is evaluated (each percentile by default)

Value

Data.frame with columns 'x', 'y'

Examples

  plot(getECDF(rnorm(1e4)))
  

cbielow/PTXQC documentation built on March 13, 2024, 5:08 a.m.