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


Java DescriptiveStatistics.getMin方法代码示例

本文整理汇总了Java中org.apache.commons.math.stat.descriptive.DescriptiveStatistics.getMin方法的典型用法代码示例。如果您正苦于以下问题:Java DescriptiveStatistics.getMin方法的具体用法?Java DescriptiveStatistics.getMin怎么用?Java DescriptiveStatistics.getMin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.commons.math.stat.descriptive.DescriptiveStatistics的用法示例。


在下文中一共展示了DescriptiveStatistics.getMin方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildFeatureObject

import org.apache.commons.math.stat.descriptive.DescriptiveStatistics; //导入方法依赖的package包/类
public Feature buildFeatureObject(DescriptiveStatistics summary,String name){
    double geometricMean = summary.getGeometricMean();
    double kurtosis = summary.getKurtosis();
    double max = summary.getMax();
    double mean = summary.getMean();
    double min = summary.getMin();
    double skewness = summary.getSkewness();
    double standardDeviation = summary.getStandardDeviation();
    double sum = summary.getSum();
    double sumsq = summary.getSumsq();
    double variance = summary.getVariance();
    double[] values = summary.getValues();
    
    
    Feature feature=new Feature(name, name, null, mean, variance, skewness);
    
    
    
   LOG.log(Level.INFO, summary.toString());
   
    
    return feature;        
}
 
开发者ID:dewmal,项目名称:artista,代码行数:24,代码来源:StatisticalAnalyser.java

示例2: getSkeletonCategoryFromCropper1979

import org.apache.commons.math.stat.descriptive.DescriptiveStatistics; //导入方法依赖的package包/类
private Integer getSkeletonCategoryFromCropper1979(Integer value, DescriptiveStatistics windowStats, Double criticalLevel)
{
	Integer skeletonCategory = 0;
	
	if(criticalLevel==null) criticalLevel = 0.5;
	double mean = windowStats.getMean();
	double stdev = windowStats.getStandardDeviation();
	double smallRingThreshold = mean-(stdev*criticalLevel);
	int min = (int) windowStats.getMin();
	
	if(value == min) 
	{
		skeletonCategory = 10;
	}
	else if(value > smallRingThreshold) 
	{
		skeletonCategory = 0;
	}
	else
	{
		Integer range = (int) (smallRingThreshold - min);
		Integer categoryStepSize = range / 10;
		skeletonCategory = (int) (0-((value-smallRingThreshold)/categoryStepSize));
	}
		
	
	return skeletonCategory;
}
 
开发者ID:ltrr-arizona-edu,项目名称:tellervo,代码行数:29,代码来源:SkeletonPlot.java

示例3: setSurvivalInfo

import org.apache.commons.math.stat.descriptive.DescriptiveStatistics; //导入方法依赖的package包/类
/**
 *
 * @param title
 * @param _siList
 * @param variable
 */
public void setSurvivalInfo(ArrayList<String> title, ArrayList<SurvivalInfo> _siList, String variable) {
	this.siList = new ArrayList<SurvivalInfo>();
	this.title = title;
	this.variable = variable;

	minX = 0.0;
	maxX = (double) _siList.size();
	minY = 0.0;
	maxY = null;
	DescriptiveStatistics ds = new DescriptiveStatistics();
	for (SurvivalInfo si : _siList) {
		this.siList.add(si);
		String v = si.getOriginalMetaData(variable);
		Double value = Double.parseDouble(v);
		ds.addValue(value);
		if (maxTime == null || maxTime < si.getTime()) {
			maxTime = si.getTime();
		}

	}
	SurvivalInfoValueComparator sivc = new SurvivalInfoValueComparator(variable);
	Collections.sort(this.siList, sivc);
	mean = ds.getMean();
	minY = ds.getMin();
	maxY = ds.getMax();
	minY = (double) Math.floor(minY);
	maxY = (double) Math.ceil(maxY);


	this.repaint();
}
 
开发者ID:biojava,项目名称:biojava,代码行数:38,代码来源:ExpressionFigure.java

示例4: getSkeletonCategoryFromPercentiles

import org.apache.commons.math.stat.descriptive.DescriptiveStatistics; //导入方法依赖的package包/类
private Integer getSkeletonCategoryFromPercentiles(Integer value, DescriptiveStatistics windowStats)
{
	Integer skeletonCategory = 0;
	// Calculate skeleton category
	if(value == (int) windowStats.getMin())
	{
		skeletonCategory = 10;
	}
	else if(value < windowStats.getPercentile(10))
	{
		skeletonCategory = 9;
	}
	else if(value < windowStats.getPercentile(15))
	{
		skeletonCategory = 8;
	}
	else if(value < windowStats.getPercentile(20))
	{
		skeletonCategory = 7;
	}
	else if(value < windowStats.getPercentile(25))
	{
		skeletonCategory = 6;
	}
	else if(value < windowStats.getPercentile(30))
	{
		skeletonCategory = 5;
	}
	else if(value < windowStats.getPercentile(35))
	{
		skeletonCategory = 4;
	}
	else if(value < windowStats.getPercentile(40))
	{
		skeletonCategory = 3;
	}
	else if(value < windowStats.getPercentile(45))
	{
		skeletonCategory = 2;
	}
	else if(value < windowStats.getPercentile(50))
	{
		skeletonCategory = 1;				
	}
	
	return skeletonCategory;
}
 
开发者ID:ltrr-arizona-edu,项目名称:tellervo,代码行数:48,代码来源:SkeletonPlot.java


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