getECDF: Estimate the empirical density and return it

Description Usage Arguments Value Examples

View source: R/fcn_misc.R

Description

Estimate the empirical density and return it

Usage

1
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

1
2
  plot(getECDF(rnorm(1e4)))
  

PTXQC documentation built on Feb. 9, 2018, 6:08 a.m.