comp3dtriang: returns the discrete density of a triangular distribution

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.


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.