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

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

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

Percentile.getDataRef介绍

暂无

代码示例

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

/**
 * Get pivots which is either cached or a newly created one
 *
 * @param values array containing the input numbers
 * @return cached pivots or a newly created one
 */
private int[] getPivots(final double[] values) {
  final int[] pivotsHeap;
  if (values == getDataRef()) {
    pivotsHeap = cachedPivots;
  } else {
    pivotsHeap = new int[PIVOTS_HEAP_LENGTH];
    Arrays.fill(pivotsHeap, -1);
  }
  return pivotsHeap;
}

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

/**
 * Returns the result of evaluating the statistic over the stored data.
 * <p>
 * The stored array is the one which was set by previous calls to
 * {@link #setData(double[])}
 * </p>
 * @param p the percentile value to compute
 * @return the value of the statistic applied to the stored data
 * @throws MathIllegalArgumentException if p is not a valid quantile value
 * (p must be greater than 0 and less than or equal to 100)
 */
public double evaluate(final double p) throws MathIllegalArgumentException {
  return evaluate(getDataRef(), p);
}

代码示例来源: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: org.apache.commons/commons-math3

if (values == getDataRef()) {
  work = getDataRef();
} else {
  switch (nanStrategy) {

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

/**
 * Get pivots which is either cached or a newly created one
 *
 * @param values array containing the input numbers
 * @return cached pivots or a newly created one
 */
private int[] getPivots(final double[] values) {
  final int[] pivotsHeap;
  if (values == getDataRef()) {
    pivotsHeap = cachedPivots;
  } else {
    pivotsHeap = new int[PIVOTS_HEAP_LENGTH];
    Arrays.fill(pivotsHeap, -1);
  }
  return pivotsHeap;
}

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

/**
 * Get pivots which is either cached or a newly created one
 *
 * @param values array containing the input numbers
 * @return cached pivots or a newly created one
 */
private int[] getPivots(final double[] values) {
  final int[] pivotsHeap;
  if (values == getDataRef()) {
    pivotsHeap = cachedPivots;
  } else {
    pivotsHeap = new int[PIVOTS_HEAP_LENGTH];
    Arrays.fill(pivotsHeap, -1);
  }
  return pivotsHeap;
}

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

/**
 * Returns the result of evaluating the statistic over the stored data.
 * <p>
 * The stored array is the one which was set by previous calls to
 * {@link #setData(double[])}
 * </p>
 * @param p the percentile value to compute
 * @return the value of the statistic applied to the stored data
 * @throws MathIllegalArgumentException if p is not a valid quantile value
 * (p must be greater than 0 and less than or equal to 100)
 */
public double evaluate(final double p) throws MathIllegalArgumentException {
  return evaluate(getDataRef(), p);
}

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

/**
 * Returns the result of evaluating the statistic over the stored data.
 * <p>
 * The stored array is the one which was set by previous calls to
 * {@link #setData(double[])}
 * </p>
 * @param p the percentile value to compute
 * @return the value of the statistic applied to the stored data
 * @throws MathIllegalArgumentException if p is not a valid quantile value
 * (p must be greater than 0 and less than or equal to 100)
 */
public double evaluate(final double p) throws MathIllegalArgumentException {
  return evaluate(getDataRef(), p);
}

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

if (values == getDataRef()) {
  work = getDataRef();
} else {
  switch (nanStrategy) {

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

if (values == getDataRef()) {
  work = getDataRef();
} else {
  switch (nanStrategy) {

代码示例来源: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);
}

相关文章