org.apache.commons.math3.stat.descriptive.rank.Percentile.setQuantile()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(155)

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

Percentile.setQuantile介绍

[英]Sets the value of the quantile field (determines what percentile is computed when evaluate() is called with no quantile argument).
[中]设置分位数字段的值(确定在没有分位数参数的情况下调用evaluate()时计算的百分比)。

代码示例

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

((Percentile) percentileImpl).setQuantile(p);
} else {
  try {

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

/**
 * Constructs a Percentile with the specific quantile value,
 * {@link EstimationType}, {@link NaNStrategy} and {@link KthSelector}.
 *
 * @param quantile the quantile to be computed
 * @param estimationType one of the percentile {@link EstimationType  estimation types}
 * @param nanStrategy one of {@link NaNStrategy} to handle with NaNs
 * @param kthSelector a {@link KthSelector} to use for pivoting during search
 * @throws MathIllegalArgumentException if p is not within (0,100]
 * @throws NullArgumentException if type or NaNStrategy passed is null
 */
protected Percentile(final double quantile,
           final EstimationType estimationType,
           final NaNStrategy nanStrategy,
           final KthSelector kthSelector)
  throws MathIllegalArgumentException {
  setQuantile(quantile);
  cachedPivots = null;
  MathUtils.checkNotNull(estimationType);
  MathUtils.checkNotNull(nanStrategy);
  MathUtils.checkNotNull(kthSelector);
  this.estimationType = estimationType;
  this.nanStrategy = nanStrategy;
  this.kthSelector = kthSelector;
}

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

/**
 * Copy constructor, creates a new {@code Percentile} identical
 * to the {@code original}
 *
 * @param original the {@code Percentile} instance to copy
 * @throws NullArgumentException if original is null
 */
public Percentile(final Percentile original) throws NullArgumentException {
  MathUtils.checkNotNull(original);
  estimationType   = original.getEstimationType();
  nanStrategy      = original.getNaNStrategy();
  kthSelector      = original.getKthSelector();
  setData(original.getDataRef());
  if (original.cachedPivots != null) {
    System.arraycopy(original.cachedPivots, 0, cachedPivots, 0, original.cachedPivots.length);
  }
  setQuantile(original.quantile);
}

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

((Percentile) percentileImpl).setQuantile(p);
} else {
  try {

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

/**
 * Constructs a Percentile with the specific quantile value,
 * {@link EstimationType}, {@link NaNStrategy} and {@link KthSelector}.
 *
 * @param quantile the quantile to be computed
 * @param estimationType one of the percentile {@link EstimationType  estimation types}
 * @param nanStrategy one of {@link NaNStrategy} to handle with NaNs
 * @param kthSelector a {@link KthSelector} to use for pivoting during search
 * @throws MathIllegalArgumentException if p is not within (0,100]
 * @throws NullArgumentException if type or NaNStrategy passed is null
 */
protected Percentile(final double quantile,
           final EstimationType estimationType,
           final NaNStrategy nanStrategy,
           final KthSelector kthSelector)
  throws MathIllegalArgumentException {
  setQuantile(quantile);
  cachedPivots = null;
  MathUtils.checkNotNull(estimationType);
  MathUtils.checkNotNull(nanStrategy);
  MathUtils.checkNotNull(kthSelector);
  this.estimationType = estimationType;
  this.nanStrategy = nanStrategy;
  this.kthSelector = kthSelector;
}

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

/**
 * Constructs a Percentile with the specific quantile value,
 * {@link EstimationType}, {@link NaNStrategy} and {@link KthSelector}.
 *
 * @param quantile the quantile to be computed
 * @param estimationType one of the percentile {@link EstimationType  estimation types}
 * @param nanStrategy one of {@link NaNStrategy} to handle with NaNs
 * @param kthSelector a {@link KthSelector} to use for pivoting during search
 * @throws MathIllegalArgumentException if p is not within (0,100]
 * @throws NullArgumentException if type or NaNStrategy passed is null
 */
protected Percentile(final double quantile,
           final EstimationType estimationType,
           final NaNStrategy nanStrategy,
           final KthSelector kthSelector)
  throws MathIllegalArgumentException {
  setQuantile(quantile);
  cachedPivots = null;
  MathUtils.checkNotNull(estimationType);
  MathUtils.checkNotNull(nanStrategy);
  MathUtils.checkNotNull(kthSelector);
  this.estimationType = estimationType;
  this.nanStrategy = nanStrategy;
  this.kthSelector = kthSelector;
}

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

/**
 * Copy constructor, creates a new {@code Percentile} identical
 * to the {@code original}
 *
 * @param original the {@code Percentile} instance to copy
 * @throws NullArgumentException if original is null
 */
public Percentile(final Percentile original) throws NullArgumentException {
  MathUtils.checkNotNull(original);
  estimationType   = original.getEstimationType();
  nanStrategy      = original.getNaNStrategy();
  kthSelector      = original.getKthSelector();
  setData(original.getDataRef());
  if (original.cachedPivots != null) {
    System.arraycopy(original.cachedPivots, 0, cachedPivots, 0, original.cachedPivots.length);
  }
  setQuantile(original.quantile);
}

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

/**
 * Copy constructor, creates a new {@code Percentile} identical
 * to the {@code original}
 *
 * @param original the {@code Percentile} instance to copy
 * @throws NullArgumentException if original is null
 */
public Percentile(final Percentile original) throws NullArgumentException {
  MathUtils.checkNotNull(original);
  estimationType   = original.getEstimationType();
  nanStrategy      = original.getNaNStrategy();
  kthSelector      = original.getKthSelector();
  setData(original.getDataRef());
  if (original.cachedPivots != null) {
    System.arraycopy(original.cachedPivots, 0, cachedPivots, 0, original.cachedPivots.length);
  }
  setQuantile(original.quantile);
}

相关文章