betainc
Regularized incomplete beta function.
y=betainc(x,a,b)
| Inputs |
x |
A real array |
a |
A real scalar specifying the first parameter. |
b |
A real scalar specifying the second parameter. |
| Outputs |
y |
A real array of same same size as x . |
Description
For a real array x , betainc(x,a, b) returns the Regularized Incomplete Beta Function function evaluated
for each of the elements of x with a and b as the parameters. The elements
of the first input are required to be in the range [0,1) .
Example
>>x=[.02:.02:.98]
>>y=betainc(x,2,2);
>>z=betainc(x,2,5);
>>plot(x,y,x,z,'b:')
>>axis([0 1])
>>legends({'a=2, b=2','a=2, b=5'})
>>title("Incomplete Beta Function")
>>xlabel("X Axis")
>>ylabel("Y Axis")
