本文整理汇总了Java中cern.jet.stat.Probability.normal方法的典型用法代码示例。如果您正苦于以下问题:Java Probability.normal方法的具体用法?Java Probability.normal怎么用?Java Probability.normal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cern.jet.stat.Probability
的用法示例。
在下文中一共展示了Probability.normal方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: binomialSampleEquality
import cern.jet.stat.Probability; //导入方法依赖的package包/类
protected double binomialSampleEquality(double X1, double X2, double n1, double n2){
double P1 = X1/n1;
double P2 = X2/n2;
double P = (X1+X2)/(n1+n2);
double Z = (P1-P2)/(Math.sqrt(P*(1-P)*((1/n1)+(1/n2))));
if(!Double.isNaN(Z))
return(1-Probability.normal(Z));
else
return(-1);
}
示例2: getNormalArea
import cern.jet.stat.Probability; //导入方法依赖的package包/类
public static double getNormalArea(double x, double mean, double sd)
throws ExtensionException {
// Returns the area to the left of x in the normal distribution
// with the given mean and standard deviation.
try {
return Probability.normal(mean, sd, x);
} catch (IllegalArgumentException | ArithmeticException ex) {
throw new ExtensionException("colt .normal reports: " + ex);
}
}
示例3: binomialSampleEquality
import cern.jet.stat.Probability; //导入方法依赖的package包/类
protected double binomialSampleEquality(double X1, double X2, double n1, double n2){
double P1 = X1/n1;
double P2 = X2/n2;
double P = (X1+X2)/(n1+n2);
double Z = (P1-P2)/(Math.sqrt(P*(1-P)*((1/n1)+(1/n2))));
if(!Double.isNaN(Z)){
double prob = Probability.normal(Z);
if(prob>0.5)
return(1-prob);
else
return(prob);
}else{
return(-1);
}
}
示例4: computeMissingParameterAfterSim
import cern.jet.stat.Probability; //导入方法依赖的package包/类
@Override
public void computeMissingParameterAfterSim()
{
confidence = 2 * (1.0 - Probability.normal(width * Math.sqrt(numSamples / varEstimator)));
missingParameterComputed = true;
}
示例5: cdf
import cern.jet.stat.Probability; //导入方法依赖的package包/类
/**
* Returns the cumulative distribution function.
*/
public double cdf(double x) {
return Probability.normal(mean,variance,x);
}