当前位置: 首页>>代码示例>>Java>>正文


Java Probability.normal方法代码示例

本文整理汇总了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);
}
 
开发者ID:seqcode,项目名称:seqcode-core,代码行数:11,代码来源:MotifAnalysisMultiMotif.java

示例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);
  }
}
 
开发者ID:cstaelin,项目名称:Stats-Extension,代码行数:11,代码来源:Distributions.java

示例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);
    }
}
 
开发者ID:shaunmahony,项目名称:multigps-archive,代码行数:16,代码来源:RegionEnrichment.java

示例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;
}
 
开发者ID:musaeed,项目名称:Prism-gsoc16,代码行数:7,代码来源:ACIconfidence.java

示例5: cdf

import cern.jet.stat.Probability; //导入方法依赖的package包/类
/**
 * Returns the cumulative distribution function.
 */
public double cdf(double x) {
	return Probability.normal(mean,variance,x);
}
 
开发者ID:dmcennis,项目名称:jAudioGIT,代码行数:7,代码来源:Normal.java


注:本文中的cern.jet.stat.Probability.normal方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。