Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: distribs
See also: cdfgamma cdfn2 pdfn2 cdfb2 pdfb2 cdfbin2 pdfbin2 cdfchi2 pdfchi2 cdff2 pdff2 cdft2 pdft2

Quantlet: pdferlang
Description: returns the values of the Erlang density function with parameters a and b for the elements of an array.

Usage: y = pdferlang(x,a,b)
Input:
x input array
a scalar or array of the same dimension as x containing the shape parameter a for the Erlang distribution
b scalar or array of the same dimension as x containing the scale parameter b for the Erlang distribution
Output:
y output array, it contains the values of the Erlang density function for the elements of array x

Note:

Example:
library("distribs")
x=#(0.5, 0.4)~#(0.01, 1)~#(-1,2)
pdferlang(x, 1, 2.5)

Result:
Contents of y
[1,]  0.32749   0.3984        0
[2,]  0.34086  0.26813  0.17973



Author: M. Stehlik, 20020520 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006