comp3dtriang: returns the discrete density of a triangular distribution

Description Usage Arguments Details Value

View source: R/f0.rbsb1.code.r

Description

returns the discrete density of a triangular distribution. More precisely returns a list with $xval indicating the discretized values and $prop the associated probabilities. When ddel and ste are integer, the $xval are also integer.

Usage

1
comp3dtriang(ddel, ste=1, pos=TRUE)

Arguments

ddel

(numeric(3)) Definition of the distribution (start, mode and end abscissae).

ste

(numeric(1)) Definition of the progression between two values.

pos

(logical(1)) When TRUE the interval is first expanded of ste each side to give non null $xval.

Details

The function seq is used to compute $xval.

Value

A list with two components. $xval gives the values; $prop gives the proportion to apply to each of them (sum($prop)=1.


rbsb documentation built on May 2, 2019, 4:41 p.m.

Related to comp3dtriang in rbsb...