本文整理汇总了Java中JSci.maths.SpecialMath.incompleteBeta方法的典型用法代码示例。如果您正苦于以下问题:Java SpecialMath.incompleteBeta方法的具体用法?Java SpecialMath.incompleteBeta怎么用?Java SpecialMath.incompleteBeta使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSci.maths.SpecialMath
的用法示例。
在下文中一共展示了SpecialMath.incompleteBeta方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: cumulative
import JSci.maths.SpecialMath; //导入方法依赖的package包/类
/**
* Cumulative F-distribution function.
* @return the probability that a stochastic variable x is less then X, i.e. P(x<X).
*/
public double cumulative(double X) {
// We make use of the fact that when x has an F-distibution then
// y = q/(q+p*x) has a beta distribution with parameters p/2 and q/2.
checkRange(X,0.0,Double.MAX_VALUE);
return SpecialMath.incompleteBeta(1.0/(1.0+q/(p*X)),p/2.0,q/2.0);
}
示例2: cumulative
import JSci.maths.SpecialMath; //导入方法依赖的package包/类
/**
* Cumulative F-distribution function.
* @return the probability that a stochastic variable x is less then X, i.e. P(x<X).
*/
public double cumulative(double X) {
checkRange(X,0.0,Double.MAX_VALUE);
return SpecialMath.incompleteBeta(1.0/(1.0+q/(p*X)),p/2.0,q/2.0);
}
示例3: cumulative
import JSci.maths.SpecialMath; //导入方法依赖的package包/类
/**
* Cumulative student's t-distribution function.
* @return the probability that a stochastic variable x is less then X, i.e. P(x<X).
*/
public double cumulative(double X) {
double A=0.5*SpecialMath.incompleteBeta((dgrFreedom)/(dgrFreedom+X*X),0.5*dgrFreedom,0.5);
return X>0 ? 1-A : A;
}
示例4: cumulative
import JSci.maths.SpecialMath; //导入方法依赖的package包/类
/**
* Cumulative beta distribution function.
* @return the probability that a stochastic variable x is less then X, i.e. P(x<X).
*/
public double cumulative(double X) {
checkRange(X);
return SpecialMath.incompleteBeta(X,p,q);
}