本文整理汇总了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;
}
示例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;
}
示例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();
}
示例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;
}