| Statistics Toolbox | Search  Help Desk |
| gamstat | Examples |
Mean and variance for the gamma distribution.
Syntax
[M,V] = gamstat(A,B)
Description
For the gamma distribution:Examples
[m,v] = gamstat(1:5,1:5)
m =
1 4 9 16 25
v =
1 8 27 64 125
[m,v] = gamstat(1:5,1./(1:5))
m =
1 1 1 1 1
v =
1.0000 0.5000 0.3333 0.2500 0.2000