continuous2density: density of the continuous part

Description Usage Arguments Details Value Examples

View source: R/f3.rbsb4.code.r

Description

This function returns the density of a continous part of an /empirical/ for the values of x.

Usage

1
continuous2density(xyco, x, dupli="m")

Arguments

xyco

The [email protected] to consider.

x

Values for which the values must be computed.

dupli

When a x value is exactly in a vertical part of the density. Several choices are possible monitored by dupli. If "d", the point will be duplicated, "1", the first value will be chosen, "2", the second value will be chosen, "m", the mean value will be chosen.

Details

Values are not normalized, to obtain them just use normalize8empirical before extracting the continuous part.

Value

The resulting values. When dupli=="d", they are not returned as a vector but as a matrix the two columns of which are the possibly duplicated x and the resulting values.

Examples

1
2
3
4
 rbsb3k("RESET"); # for R checking compliance (useless)
 xx <- seq(0, 6, 0.3);
 xy <- matrix(c(1:5, 0, 1, 3, 3, 0), 5);
 cbind(xx, continuous2density(xy, xx));

rbsb documentation built on May 31, 2017, 1:45 a.m.