Generates beta distribution probability density function values at specified locations. |
||
Syntax |
PDF = BetaPDF(Points, a, b) |
|
Arguments |
Name |
Description |
Points |
A scalar, vector, or matrix of points where the density function is to be evaluated. The output is 0 outside of the interval [0, 1]. |
|
a |
First shape parameter. A positive scalar. |
|
b |
Second shape parameter. A positive scalar. |
|
Outputs |
Name |
Description |
A scalar, vector, or matrix of the density function values at the given points. The same size as Points. |
||
Example |
Find the beta probability density function at points 0.1, 0.3, and 0.8 with parameters a = 2 and b = 5. |
|
Syntax |
||
pdf = BetaPDF([0.1,0.3,0.8],2,5) |
||
Results |
||
pdf = 1.9683 2.1609 0.0384 |
||
See Also: |