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 21, 2017, 12:21 a.m.

Search within the rbsb package
Search all R packages, documentation and source code

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

Please suggest features or report bugs in the GitHub issue tracker.

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