org.apache.commons.math3.stat.descriptive.moment.Mean.getN()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(202)

本文整理了Java中org.apache.commons.math3.stat.descriptive.moment.Mean.getN()方法的一些代码示例,展示了Mean.getN()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mean.getN()方法的具体详情如下:
包路径:org.apache.commons.math3.stat.descriptive.moment.Mean
类名称:Mean
方法名:getN

Mean.getN介绍

暂无

代码示例

代码示例来源:origin: org.apache.commons/commons-math3

/**
 * Get the number of vectors in the sample.
 * @return number of vectors in the sample
 */
public long getN() {
  return (means.length == 0) ? 0 : means[0].getN();
}

代码示例来源:origin: apache/accumulo

@Override
public long num() {
 return mean.getN();
}

代码示例来源:origin: apache/accumulo

@Override
public String toString() {
 return String.format("%,d %,d %,.2f %,d", min(), max(), mean(), mean.getN());
}

代码示例来源:origin: geogebra/geogebra

/**
 * Get the number of vectors in the sample.
 * @return number of vectors in the sample
 */
public long getN() {
  return (means.length == 0) ? 0 : means[0].getN();
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Get the number of vectors in the sample.
 * @return number of vectors in the sample
 */
public long getN() {
  return (means.length == 0) ? 0 : means[0].getN();
}

代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core

@Override
public long getCount() {
  return mean.getN();
}

代码示例来源:origin: meyerjp3/psychometrics

public long getSampleSize(){
  return m.getN();
}

代码示例来源:origin: myrrix/myrrix-recommender

public int getCount() {
 return (int) mean.getN();
}

代码示例来源:origin: meyerjp3/psychometrics

public String toString(String title){
  StringBuilder sb = new StringBuilder();
  Formatter f = new Formatter(sb);
  f.format("%-50s", title);f.format("%n");
  f.format("%30s", "==============================");f.format("%n");
  f.format("%-10s", "Statistic");f.format("%5s", "");
  f.format("%10s", "Value");f.format("%5s", "");f.format("%n");
  f.format("%30s", "------------------------------");f.format("%n");
  f.format("%-10s", "N");f.format("%5s", "");
  f.format("%10.4f", (double)m.getN());f.format("%5s", "");f.format("%n");
  f.format("%-10s", "Min");f.format("%5s", "");
  f.format("%10.4f", min.getResult());f.format("%5s", "");f.format("%n");
  f.format("%-10s", "Max");f.format("%5s", "");
  f.format("%10.4f", max.getResult());f.format("%5s", "");f.format("%n");
  f.format("%-10s", "Mean");f.format("%5s", "");
  f.format("%10.4f", m.getResult());f.format("%5s", "");f.format("%n");
  f.format("%-10s", "St. Dev.");f.format("%5s", "");
  f.format("%10.4f", sd.getResult());f.format("%5s", "");f.format("%n");
  f.format("%-10s", "Skewness");f.format("%5s", "");
  f.format("%10.4f", skew.getResult());f.format("%5s", "");f.format("%n");
  f.format("%-10s", "Kurtosis");f.format("%5s", "");
  f.format("%10.4f", kurt.getResult());f.format("%5s", "");f.format("%n");
  f.format("%30s", "==============================");f.format("%n");
  return f.toString();
}

代码示例来源:origin: org.apache.accumulo/accumulo-core

@Override
public String toString() {
 return String.format("%,d %,d %,.2f %,d", getMin(), getMax(), getAverage(), mean.getN());
}

代码示例来源:origin: myrrix/myrrix-recommender

if (precision.getN() > 0) {
 result = new IRStatisticsImpl(precision.getResult(),
                recall.getResult(),

相关文章