CDF {stats} R Documentation

Empirical Cumulative Distribution Function

Description


Compute an empirical cumulative distribution function

Usage

CDF(FUNC, range,
    p0 = 0,
    resolution = 50000);

Arguments

FUNC

function for run value integral, this function should accept a number as parameter and produce new number as output.

range

the value range of the target function to do integral

p0

the y0 value for the integral. [as double]

resolution

the RK4 integral algorithm resolution. [as integer]

Details

Authors

sciBASIC.NET

Value

this function returns a tuple list object that contains the data slots: + ecdf: the result value of the integral, a numeric scalar value + x: a numeric vector for x axis + y: a numeric vector for y axis

the list data also has some specificied data fields: list(ecdf, x, y).

clr value class

Examples


[Package stats version 5.0.1.2389 Index]