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: pdfgamma
Description: returns the values of the Gamma density function with parameters a and b for the elements of an array.

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

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

Result:
Contents of y
[1,]  0.43939   3.9695        0
[2,]  0.51644  0.24197  0.10378



Author: P. Cizek, 20020516
(C) MD*TECH Method and Data Technologies, 05.02.2006