本文整理了Java中org.apache.commons.math3.stat.descriptive.moment.Mean.getResult()
方法的一些代码示例,展示了Mean.getResult()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mean.getResult()
方法的具体详情如下:
包路径:org.apache.commons.math3.stat.descriptive.moment.Mean
类名称:Mean
方法名:getResult
暂无
代码示例来源:origin: org.apache.commons/commons-math3
/**
* Get the mean vector.
* @return mean vector
*/
public double[] getResult() {
double[] result = new double[means.length];
for (int i = 0; i < result.length; ++i) {
result[i] = means[i].getResult();
}
return result;
}
代码示例来源:origin: lenskit/lenskit
public AggregateResult(Context accum) {
this.mrr = accum.allMean.getResult();
}
}
代码示例来源:origin: lenskit/lenskit
public AggregateResult(Context accum) {
this.map = accum.allMean.getResult();
}
}
代码示例来源:origin: apache/accumulo
@Override
public double mean() {
return mean.getResult();
}
代码示例来源:origin: OryxProject/oryx
log.info("Mean matching prefix: {}", meanMatchLength.getResult());
assertGreaterOrEqual(meanMatchLength.getResult(), 4.0);
log.info("Mean matching prefix: {}", meanMatchLength.getResult());
assertGreaterOrEqual(meanMatchLength.getResult(), 5.0);
代码示例来源:origin: lenskit/lenskit
@Nonnull
@Override
public MetricResult getAggregateMeasurements(Mean context) {
return MetricResult.singleton(columnName, context.getResult());
}
代码示例来源:origin: lenskit/lenskit
@Nonnull
@Override
public MetricResult getAggregateMeasurements(Mean context) {
logger.warn("Predict nDCG is deprecated, use nDCG in a rank context");
return MetricResult.singleton(columnName, context.getResult());
}
代码示例来源:origin: lenskit/lenskit
@Nonnull
@Override
public MetricResult getAggregateMeasurements(Mean context) {
return new LengthResult(context.getResult());
}
代码示例来源:origin: lenskit/lenskit
@Nonnull
@Override
public MetricResult getAggregateMeasurements(Context context) {
return new PopResult(context.mean.getResult());
}
代码示例来源:origin: geogebra/geogebra
/**
* Get the mean vector.
* @return mean vector
*/
public double[] getResult() {
double[] result = new double[means.length];
for (int i = 0; i < result.length; ++i) {
result[i] = means[i].getResult();
}
return result;
}
代码示例来源:origin: meyerjp3/psychometrics
public double getDindexUpper(){
if(dIndex){
return upper.getResult();
}else{
return Double.NaN;
}
}
代码示例来源:origin: meyerjp3/psychometrics
/**
* Mean square error of the estimate.
*
* @return mean square error.
*/
public double meanSquareError(){
return mean.getResult();
}
代码示例来源:origin: meyerjp3/psychometrics
public double getDindexLower(){
if(dIndex){
return lower.getResult();
}else{
return Double.NaN;
}
}
代码示例来源:origin: meyerjp3/psychometrics
public double getDIndex(){
if(dIndex){
return upper.getResult()-lower.getResult();
}else{
return Double.NaN;
}
}
代码示例来源:origin: io.virtdata/virtdata-lib-realer
/**
* Get the mean vector.
* @return mean vector
*/
public double[] getResult() {
double[] result = new double[means.length];
for (int i = 0; i < result.length; ++i) {
result[i] = means[i].getResult();
}
return result;
}
代码示例来源:origin: Jasig/uPortal
/**
* Returns the mean of the values that have been added.
*
* <p>Double.NaN is returned if no values have been added.
*
* @return the mean
*/
@Override
public double getMean() {
return _getMean().getResult();
}
代码示例来源:origin: ICOnator/ICOnator-backend
private BigDecimal getMean(List<Double> data) {
Mean mean = new Mean();
data.stream().forEach((value) -> mean.increment(value));
return BigDecimal.valueOf(mean.getResult());
}
代码示例来源:origin: jpmml/jpmml-evaluator
static
private Double evaluate(Collection<?> values){
Mean statistic = new Mean();
for(Object value : values){
Number number = (Number)TypeUtil.parseOrCast(DataType.DOUBLE, value);
statistic.increment(number.doubleValue());
}
return statistic.getResult();
}
}
代码示例来源:origin: org.jpmml/pmml-extension
static
private Double evaluate(Collection<?> values){
Mean statistic = new Mean();
for(Object value : values){
Double doubleValue = (Double)TypeUtil.parseOrCast(DataType.DOUBLE, value);
statistic.increment(doubleValue.doubleValue());
}
return statistic.getResult();
}
}
代码示例来源:origin: org.jpmml/pmml-evaluator-extension
static
private Double evaluate(Collection<?> values){
Mean statistic = new Mean();
for(Object value : values){
Number number = (Number)TypeUtil.parseOrCast(DataType.DOUBLE, value);
statistic.increment(number.doubleValue());
}
return statistic.getResult();
}
}
内容来源于网络,如有侵权,请联系作者删除!