Class IntegerNumericPrimitives

java.lang.Object
com.illumon.iris.libs.primitives.IntegerNumericPrimitives

public class IntegerNumericPrimitives extends Object
A set of commonly used numeric functions that can be applied to Integer types.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    abs(int value)
    Returns the absolute value.
    static double
    absAvg(int[] values)
    Returns the mean of the absolute values of values.
    static double
    Returns the mean of the absolute values of values.
    static double
    absAvg(Integer... values)
    Returns the mean of the absolute values of values.
    static double
    acos(int value)
    Returns the arc cosine.
    static double
    asin(int value)
    Returns the arc sine.
    static double
    atan(int value)
    Returns the arc tangent.
    static double
    avg(int[] values)
    Returns the mean.
    static double
    avg(DbIntArray values)
    Returns the mean.
    static double
    avg(Integer... values)
    Returns the mean.
    static int
    binSearchIndex(int[] values, int key, BinSearch choiceWhenEquals)
    Performs a binary search to find a key.
    static int
    binSearchIndex(DbIntArray values, int key, BinSearch choiceWhenEquals)
    Performs a binary search to find a key.
    static double
    ceil(int value)
    Returns the ceiling.
    static int
    clamp(int value, int min, int max)
    Constrains the value to be on the [min,max] range.
    static double
    cor(int[] values0, int[] values1)
    Returns the correlation.
    static double
    cor(int[] values0, DbIntArray values1)
    Returns the correlation.
    static double
    cor(DbIntArray values0, int[] values1)
    Returns the correlation.
    static double
    cor(DbIntArray values0, DbIntArray values1)
    Returns the correlation.
    static double
    cos(int value)
    Returns the cosine.
    static int
    countNeg(int[] values)
    Counts the number of negative values.
    static int
    Counts the number of negative values.
    static int
    countNeg(Integer... values)
    Counts the number of negative values.
    static int
    countPos(int[] values)
    Counts the number of positive values.
    static int
    Counts the number of positive values.
    static int
    countPos(Integer... values)
    Counts the number of positive values.
    static int
    countZero(int[] values)
    Counts the number of zero values.
    static int
    Counts the number of zero values.
    static int
    countZero(Integer... values)
    Counts the number of zero values.
    static double
    cov(int[] values0, int[] values1)
    Returns the covariance.
    static double
    cov(int[] values0, DbIntArray values1)
    Returns the covariance.
    static double
    cov(DbIntArray values0, int[] values1)
    Returns the covariance.
    static double
    cov(DbIntArray values0, DbIntArray values1)
    Returns the covariance.
    static int[]
    cumMax(int... values)
    Returns the cumulative minimum.
    static int[]
    cumMin(int... values)
    Returns the cumulative minimum.
    static int[]
    cumprod(int[] values)
    Returns the cumulative product.
    static int[]
    Returns the cumulative product.
    static int[]
    cumprod(Integer... values)
    Returns the cumulative product.
    static int[]
    cumsum(int[] values)
    Returns the cumulative sum.
    static int[]
    Returns the cumulative sum.
    static int[]
    cumsum(Integer... values)
    Returns the cumulative sum.
    static double
    exp(int value)
    Returns Euler's number e raised to a power.
    static int
    firstIndexOf(int[] values, int val)
    Returns the first index containing the value.
    static int
    firstIndexOf(DbIntArray values, int val)
    Returns the first index containing the value.
    static double
    floor(int value)
    Returns the floor.
    static int
    indexOfMax(int[] values)
    Returns the index of the maximum value.
    static int
    Returns the index of the maximum value.
    static int
    indexOfMax(Integer... values)
    Returns the index of the maximum value.
    static int
    indexOfMin(int[] values)
    Returns the index of the minimum value.
    static int
    Returns the index of the minimum value.
    static int
    indexOfMin(Integer... values)
    Returns the index of the minimum value.
    static double
    log(int value)
    Returns the natural logarithm (base e).
    static int
    lowerBin(int value, int interval)
    Returns the lower bound of the bin containing the value.
    static int
    lowerBin(int value, int interval, int offset)
    Returns the lower bound of the bin containing the value.
    static int
    max(int[] values)
    Returns the maximum.
    static int
    max(DbIntArray values)
    Returns the maximum.
    static int
    max(Integer... values)
    Returns the maximum.
    static double
    median(int[] values)
    Returns the median.
    static double
    Returns the median.
    static double
    median(Integer... values)
    Returns the median.
    static int
    min(int[] values)
    Returns the minimum.
    static int
    min(DbIntArray values)
    Returns the minimum.
    static int
    min(Integer... values)
    Returns the minimum.
    static double
    percentile(double percentile, int... values)
    Returns the percentile.
    static double
    percentile(double percentile, DbIntArray values)
    Returns the percentile.
    static double
    pow(int a, int b)
    Returns the value of the first argument raised to the second argument.
    static int
    product(int[] values)
    Returns the product.
    static int
    Returns the product.
    static int
    rawBinSearchIndex(int[] values, int key, BinSearch choiceWhenEquals)
    Performs a binary search to find a key.
    static int
    rawBinSearchIndex(DbIntArray values, int key, BinSearch choiceWhenEquals)
    Performs a binary search to find a key.
    static double
    rint(int value)
    Returns the integer closest to the input value.
    static long
    round(int value)
    Returns the closest integer to the argument.
    static int[]
    sequence(int start, int end, int step)
    Returns a sequence of values.
    static int
    signum(int value)
    Returns the signum function.
    static double
    sin(int value)
    Returns the sine.
    static int[]
    sort(int[] values)
    Returns sorted values from smallest to largest.
    static DbIntArray
    sort(DbIntArray values)
    Returns sorted values from smallest to largest.
    static int[]
    sort(Integer... values)
    Returns sorted values from smallest to largest.
    static int[]
    sortDescending(int[] values)
    Returns sorted values from largest to smallest.
    static DbIntArray
    Returns sorted values from largest to smallest.
    static int[]
    Returns sorted values from largest to smallest.
    static double
    sqrt(int value)
    Returns the square root.
    static double
    std(int[] values)
    Returns the standard deviation.
    static double
    std(DbIntArray values)
    Returns the standard deviation.
    static double
    std(Integer... values)
    Returns the standard deviation.
    static double
    ste(int[] values)
    Returns the standard error.
    static double
    ste(DbIntArray values)
    Returns the standard error.
    static double
    ste(Integer... values)
    Returns the standard error.
    static int
    sum(int[] values)
    Returns the sum.
    static int[]
    sum(int[]... values)
    Returns the sum.
    static int[]
    sum(DbArray<int[]> values)
    Returns the sum.
    static int
    sum(DbIntArray values)
    Returns the sum.
    static double
    tan(int value)
    Returns the tangent.
    static double
    tstat(int[] values)
    Returns the t-statistic.
    static double
    tstat(DbIntArray values)
    Returns the t-statistic.
    static double
    tstat(Integer... values)
    Returns the t-statistic.
    static int
    upperBin(int value, int interval)
    Returns the upper bound of the bin containing the value.
    static int
    upperBin(int value, int interval, int offset)
    Returns the upper bound of the bin containing the value.
    static double
    var(int[] values)
    Returns the variance.
    static double
    var(DbIntArray values)
    Returns the variance.
    static double
    var(Integer... values)
    Returns the variance.
    static double
    wavg(int[] values, double[] weights)
    Returns the weighted average.
    static double
    wavg(int[] values, float[] weights)
    Returns the weighted average.
    static double
    wavg(int[] values, int[] weights)
    Returns the weighted average.
    static double
    wavg(int[] values, long[] weights)
    Returns the weighted average.
    static double
    wavg(int[] values, short[] weights)
    Returns the weighted average.
    static double
    wavg(int[] values, DbDoubleArray weights)
    Returns the weighted average.
    static double
    wavg(int[] values, DbFloatArray weights)
    Returns the weighted average.
    static double
    wavg(int[] values, DbIntArray weights)
    Returns the weighted average.
    static double
    wavg(int[] values, DbLongArray weights)
    Returns the weighted average.
    static double
    wavg(int[] values, DbShortArray weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, double[] weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, float[] weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, int[] weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, long[] weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, short[] weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, DbDoubleArray weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, DbFloatArray weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, DbIntArray weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, DbLongArray weights)
    Returns the weighted average.
    static double
    wavg(DbIntArray values, DbShortArray weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, double[] weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, float[] weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, int[] weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, long[] weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, short[] weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, DbDoubleArray weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, DbFloatArray weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, DbIntArray weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, DbLongArray weights)
    Returns the weighted average.
    static double
    weightedAvg(int[] values, DbShortArray weights)
    Returns the weighted average.
    static double
    weightedAvg(DbIntArray values, double[] weights)
    Returns the weighted average.
    static double
    weightedAvg(DbIntArray values, float[] weights)
    Returns the weighted average.
    static double
    weightedAvg(DbIntArray values, int[] weights)
    Returns the weighted average.
    static double
    weightedAvg(DbIntArray values, long[] weights)
    Returns the weighted average.
    static double
    weightedAvg(DbIntArray values, short[] weights)
    Returns the weighted average.
    static double
    Returns the weighted average.
    static double
    Returns the weighted average.
    static double
    weightedAvg(DbIntArray values, DbIntArray weights)
    Returns the weighted average.
    static double
    Returns the weighted average.
    static double
    Returns the weighted average.
    static double
    weightedSum(int[] values, double[] weights)
    Returns the weighted sum.
    static double
    weightedSum(int[] values, float[] weights)
    Returns the weighted sum.
    static double
    weightedSum(int[] values, int[] weights)
    Returns the weighted sum.
    static double
    weightedSum(int[] values, long[] weights)
    Returns the weighted sum.
    static double
    weightedSum(int[] values, short[] weights)
    Returns the weighted sum.
    static double
    weightedSum(int[] values, DbDoubleArray weights)
    Returns the weighted sum.
    static double
    weightedSum(int[] values, DbFloatArray weights)
    Returns the weighted sum.
    static double
    weightedSum(int[] values, DbIntArray weights)
    Returns the weighted sum.
    static double
    weightedSum(int[] values, DbLongArray weights)
    Returns the weighted sum.
    static double
    weightedSum(int[] values, DbShortArray weights)
    Returns the weighted sum.
    static double
    weightedSum(DbIntArray values, double[] weights)
    Returns the weighted sum.
    static double
    weightedSum(DbIntArray values, float[] weights)
    Returns the weighted sum.
    static double
    weightedSum(DbIntArray values, int[] weights)
    Returns the weighted sum.
    static double
    weightedSum(DbIntArray values, long[] weights)
    Returns the weighted sum.
    static double
    weightedSum(DbIntArray values, short[] weights)
    Returns the weighted sum.
    static double
    Returns the weighted sum.
    static double
    Returns the weighted sum.
    static double
    weightedSum(DbIntArray values, DbIntArray weights)
    Returns the weighted sum.
    static double
    Returns the weighted sum.
    static double
    Returns the weighted sum.
    static double
    wstd(int[] values, double[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(int[] values, float[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(int[] values, int[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(int[] values, long[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(int[] values, short[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(int[] values, DbDoubleArray weights)
    Returns the weighted standard deviation.
    static double
    wstd(int[] values, DbFloatArray weights)
    Returns the weighted standard deviation.
    static double
    wstd(int[] values, DbIntArray weights)
    Returns the weighted standard deviation.
    static double
    wstd(int[] values, DbLongArray weights)
    Returns the weighted standard deviation.
    static double
    wstd(int[] values, DbShortArray weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, double[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, float[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, int[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, long[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, short[] weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, DbDoubleArray weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, DbFloatArray weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, DbIntArray weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, DbLongArray weights)
    Returns the weighted standard deviation.
    static double
    wstd(DbIntArray values, DbShortArray weights)
    Returns the weighted standard deviation.
    static double
    wste(int[] values, double[] weights)
    Returns the weighted standard error.
    static double
    wste(int[] values, float[] weights)
    Returns the weighted standard error.
    static double
    wste(int[] values, int[] weights)
    Returns the weighted standard error.
    static double
    wste(int[] values, long[] weights)
    Returns the weighted standard error.
    static double
    wste(int[] values, short[] weights)
    Returns the weighted standard error.
    static double
    wste(int[] values, DbDoubleArray weights)
    Returns the weighted standard error.
    static double
    wste(int[] values, DbFloatArray weights)
    Returns the weighted standard error.
    static double
    wste(int[] values, DbIntArray weights)
    Returns the weighted standard error.
    static double
    wste(int[] values, DbLongArray weights)
    Returns the weighted standard error.
    static double
    wste(int[] values, DbShortArray weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, double[] weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, float[] weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, int[] weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, long[] weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, short[] weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, DbDoubleArray weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, DbFloatArray weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, DbIntArray weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, DbLongArray weights)
    Returns the weighted standard error.
    static double
    wste(DbIntArray values, DbShortArray weights)
    Returns the weighted standard error.
    static double
    wsum(int[] values, double[] weights)
    Returns the weighted sum.
    static double
    wsum(int[] values, float[] weights)
    Returns the weighted sum.
    static double
    wsum(int[] values, int[] weights)
    Returns the weighted sum.
    static double
    wsum(int[] values, long[] weights)
    Returns the weighted sum.
    static double
    wsum(int[] values, short[] weights)
    Returns the weighted sum.
    static double
    wsum(int[] values, DbDoubleArray weights)
    Returns the weighted sum.
    static double
    wsum(int[] values, DbFloatArray weights)
    Returns the weighted sum.
    static double
    wsum(int[] values, DbIntArray weights)
    Returns the weighted sum.
    static double
    wsum(int[] values, DbLongArray weights)
    Returns the weighted sum.
    static double
    wsum(int[] values, DbShortArray weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, double[] weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, float[] weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, int[] weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, long[] weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, short[] weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, DbDoubleArray weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, DbFloatArray weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, DbIntArray weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, DbLongArray weights)
    Returns the weighted sum.
    static double
    wsum(DbIntArray values, DbShortArray weights)
    Returns the weighted sum.
    static double
    wtstat(int[] values, double[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(int[] values, float[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(int[] values, int[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(int[] values, long[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(int[] values, short[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(int[] values, DbDoubleArray weights)
    Returns the weighted t-statistic.
    static double
    wtstat(int[] values, DbFloatArray weights)
    Returns the weighted t-statistic.
    static double
    wtstat(int[] values, DbIntArray weights)
    Returns the weighted t-statistic.
    static double
    wtstat(int[] values, DbLongArray weights)
    Returns the weighted t-statistic.
    static double
    wtstat(int[] values, DbShortArray weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, double[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, float[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, int[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, long[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, short[] weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, DbDoubleArray weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, DbFloatArray weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, DbIntArray weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, DbLongArray weights)
    Returns the weighted t-statistic.
    static double
    wtstat(DbIntArray values, DbShortArray weights)
    Returns the weighted t-statistic.
    static double
    wvar(int[] values, double[] weights)
    Returns the weighted variance.
    static double
    wvar(int[] values, float[] weights)
    Returns the weighted variance.
    static double
    wvar(int[] values, int[] weights)
    Returns the weighted variance.
    static double
    wvar(int[] values, long[] weights)
    Returns the weighted variance.
    static double
    wvar(int[] values, short[] weights)
    Returns the weighted variance.
    static double
    wvar(int[] values, DbDoubleArray weights)
    Returns the weighted variance.
    static double
    wvar(int[] values, DbFloatArray weights)
    Returns the weighted variance.
    static double
    wvar(int[] values, DbIntArray weights)
    Returns the weighted variance.
    static double
    wvar(int[] values, DbLongArray weights)
    Returns the weighted variance.
    static double
    wvar(int[] values, DbShortArray weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, double[] weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, float[] weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, int[] weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, long[] weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, short[] weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, DbDoubleArray weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, DbFloatArray weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, DbIntArray weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, DbLongArray weights)
    Returns the weighted variance.
    static double
    wvar(DbIntArray values, DbShortArray weights)
    Returns the weighted variance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IntegerNumericPrimitives

      public IntegerNumericPrimitives()
  • Method Details

    • countPos

      public static int countPos(Integer... values)
      Counts the number of positive values.
      Parameters:
      values - values.
      Returns:
      number of positive values.
    • countPos

      public static int countPos(int[] values)
      Counts the number of positive values.
      Parameters:
      values - values.
      Returns:
      number of positive values.
    • countPos

      public static int countPos(DbIntArray values)
      Counts the number of positive values.
      Parameters:
      values - values.
      Returns:
      number of positive values.
    • countNeg

      public static int countNeg(Integer... values)
      Counts the number of negative values.
      Parameters:
      values - values.
      Returns:
      number of negative values.
    • countNeg

      public static int countNeg(int[] values)
      Counts the number of negative values.
      Parameters:
      values - values.
      Returns:
      number of negative values.
    • countNeg

      public static int countNeg(DbIntArray values)
      Counts the number of negative values.
      Parameters:
      values - values.
      Returns:
      number of negative values.
    • countZero

      public static int countZero(Integer... values)
      Counts the number of zero values.
      Parameters:
      values - values.
      Returns:
      number of zero values.
    • countZero

      public static int countZero(int[] values)
      Counts the number of zero values.
      Parameters:
      values - values.
      Returns:
      number of zero values.
    • countZero

      public static int countZero(DbIntArray values)
      Counts the number of zero values.
      Parameters:
      values - values.
      Returns:
      number of zero values.
    • avg

      public static double avg(Integer... values)
      Returns the mean. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      mean of non-null values.
    • avg

      public static double avg(int[] values)
      Returns the mean. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      mean of non-null values.
    • avg

      public static double avg(DbIntArray values)
      Returns the mean. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      mean of non-null values.
    • absAvg

      public static double absAvg(Integer... values)
      Returns the mean of the absolute values of values. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      mean of the absolute value of non-null values.
    • absAvg

      public static double absAvg(int[] values)
      Returns the mean of the absolute values of values. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      mean of the absolute value of non-null values.
    • absAvg

      public static double absAvg(DbIntArray values)
      Returns the mean of the absolute values of values. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      mean of the absolute value of non-null values.
    • var

      public static double var(Integer... values)
      Returns the variance. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      variance of non-null values.
    • var

      public static double var(int[] values)
      Returns the variance. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      variance of non-null values.
    • var

      public static double var(DbIntArray values)
      Returns the variance. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      variance of non-null values.
    • wvar

      public static double wvar(int[] values, DbDoubleArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, double[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(int[] values, double[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, DbDoubleArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(int[] values, DbFloatArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, float[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(int[] values, float[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, DbFloatArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(int[] values, DbShortArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, short[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(int[] values, short[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, DbShortArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(int[] values, DbIntArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, int[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(int[] values, int[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, DbIntArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(int[] values, DbLongArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, long[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(int[] values, long[] weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • wvar

      public static double wvar(DbIntArray values, DbLongArray weights)
      Returns the weighted variance. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted variance of non-null values.
    • std

      public static double std(Integer... values)
      Returns the standard deviation. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      standard deviation of non-null values.
    • std

      public static double std(int[] values)
      Returns the standard deviation. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      standard deviation of non-null values.
    • std

      public static double std(DbIntArray values)
      Returns the standard deviation. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, DbDoubleArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, double[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, double[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, DbDoubleArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, DbFloatArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, float[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, float[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, DbFloatArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, DbIntArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, int[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, int[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, DbIntArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, DbShortArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, short[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, short[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, DbShortArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, DbLongArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, long[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(int[] values, long[] weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • wstd

      public static double wstd(DbIntArray values, DbLongArray weights)
      Returns the weighted standard deviation. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard deviation of non-null values.
    • ste

      public static double ste(Integer... values)
      Returns the standard error. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      standard error of non-null values.
    • ste

      public static double ste(int[] values)
      Returns the standard error. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      standard error of non-null values.
    • ste

      public static double ste(DbIntArray values)
      Returns the standard error. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      standard error of non-null values.
    • wste

      public static double wste(int[] values, DbDoubleArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, double[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(int[] values, double[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, DbDoubleArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(int[] values, DbFloatArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, float[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(int[] values, float[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, DbFloatArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(int[] values, DbIntArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, int[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(int[] values, int[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, DbIntArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(int[] values, DbShortArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, short[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(int[] values, short[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, DbShortArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(int[] values, DbLongArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, long[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(int[] values, long[] weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • wste

      public static double wste(DbIntArray values, DbLongArray weights)
      Returns the weighted standard error. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted standard error of non-null values.
    • tstat

      public static double tstat(Integer... values)
      Returns the t-statistic. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      t-statistic of non-null values.
    • tstat

      public static double tstat(int[] values)
      Returns the t-statistic. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      t-statistic of non-null values.
    • tstat

      public static double tstat(DbIntArray values)
      Returns the t-statistic. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, DbDoubleArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, double[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, double[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, DbDoubleArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, DbFloatArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, float[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, float[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, DbFloatArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, DbIntArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, int[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, int[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, DbIntArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, DbShortArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, short[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, short[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, DbShortArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, DbLongArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, long[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(int[] values, long[] weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • wtstat

      public static double wtstat(DbIntArray values, DbLongArray weights)
      Returns the weighted t-statistic. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted t-statistic of non-null values.
    • max

      public static int max(DbIntArray values)
      Returns the maximum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      maximum of non-null values.
    • max

      public static int max(int[] values)
      Returns the maximum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      maximum of non-null values.
    • max

      public static int max(Integer... values)
      Returns the maximum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      maximum of non-null values.
    • min

      public static int min(DbIntArray values)
      Returns the minimum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      minimum of non-null values.
    • min

      public static int min(int[] values)
      Returns the minimum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      minimum of non-null values.
    • min

      public static int min(Integer... values)
      Returns the minimum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      minimum of non-null values.
    • median

      public static double median(Integer... values)
      Returns the median.
      Parameters:
      values - values.
      Returns:
      median.
    • median

      public static double median(int[] values)
      Returns the median.
      Parameters:
      values - values.
      Returns:
      median.
    • median

      public static double median(DbIntArray values)
      Returns the median.
      Parameters:
      values - values.
      Returns:
      median.
    • percentile

      public static double percentile(double percentile, int... values)
      Returns the percentile.
      Parameters:
      percentile - percentile to compute.
      values - values.
      Returns:
      percentile.
    • percentile

      public static double percentile(double percentile, DbIntArray values)
      Returns the percentile.
      Parameters:
      percentile - percentile to compute.
      values - values.
      Returns:
      percentile.
    • firstIndexOf

      public static int firstIndexOf(int[] values, int val)
      Returns the first index containing the value.
      Parameters:
      values - values.
      val - value to search for.
      Returns:
      first index containing the value or null, if the value is not present.
    • firstIndexOf

      public static int firstIndexOf(DbIntArray values, int val)
      Returns the first index containing the value.
      Parameters:
      values - values.
      val - value to search for.
      Returns:
      first index containing the value or null, if the value is not present.
    • indexOfMax

      public static int indexOfMax(Integer... values)
      Returns the index of the maximum value.
      Parameters:
      values - values.
      Returns:
      index of the maximum value.
    • indexOfMax

      public static int indexOfMax(int[] values)
      Returns the index of the maximum value.
      Parameters:
      values - values.
      Returns:
      index of the maximum value.
    • indexOfMax

      public static int indexOfMax(DbIntArray values)
      Returns the index of the maximum value.
      Parameters:
      values - values.
      Returns:
      index of the maximum value.
    • indexOfMin

      public static int indexOfMin(Integer... values)
      Returns the index of the minimum value.
      Parameters:
      values - values.
      Returns:
      index of the minimum value.
    • indexOfMin

      public static int indexOfMin(int[] values)
      Returns the index of the minimum value.
      Parameters:
      values - values.
      Returns:
      index of the minimum value.
    • indexOfMin

      public static int indexOfMin(DbIntArray values)
      Returns the index of the minimum value.
      Parameters:
      values - values.
      Returns:
      index of the minimum value.
    • binSearchIndex

      public static int binSearchIndex(int[] values, int key, BinSearch choiceWhenEquals)
      Performs a binary search to find a key.
      Parameters:
      values - sorted values to search.
      key - key to search for.
      choiceWhenEquals - algorithm used to resolve ties when performing a binary search.
      Returns:
      index of the search key, if it is contained in the array; otherwise, the index immediately before where the key would be inserted.
    • binSearchIndex

      public static int binSearchIndex(DbIntArray values, int key, BinSearch choiceWhenEquals)
      Performs a binary search to find a key.
      Parameters:
      values - sorted values to search.
      key - key to search for.
      choiceWhenEquals - algorithm used to resolve ties when performing a binary search.
      Returns:
      index of the search key, if it is contained in the array; otherwise, the index immediately before where the key would be inserted.
    • rawBinSearchIndex

      public static int rawBinSearchIndex(int[] values, int key, BinSearch choiceWhenEquals)
      Performs a binary search to find a key.
      Parameters:
      values - sorted values to search.
      key - key to search for.
      choiceWhenEquals - algorithm used to resolve ties when performing a binary search.
      Returns:
      index of the search key, if it is contained in the array; otherwise, (-(insertion point) - 1).
    • rawBinSearchIndex

      public static int rawBinSearchIndex(DbIntArray values, int key, BinSearch choiceWhenEquals)
      Performs a binary search to find a key.
      Parameters:
      values - sorted values to search.
      key - key to search for.
      choiceWhenEquals - algorithm used to resolve ties when performing a binary search.
      Returns:
      index of the search key, if it is contained in the array; otherwise, (-(insertion point) - 1).
    • cov

      public static double cov(int[] values0, DbIntArray values1)
      Returns the covariance. Null values are excluded.
      Parameters:
      values0 - 1st set of values.
      values1 - 2nd set of values.
      Returns:
      covariance of non-null values.
    • cov

      public static double cov(DbIntArray values0, int[] values1)
      Returns the covariance. Null values are excluded.
      Parameters:
      values0 - 1st set of values.
      values1 - 2nd set of values.
      Returns:
      covariance of non-null values.
    • cov

      public static double cov(int[] values0, int[] values1)
      Returns the covariance. Null values are excluded.
      Parameters:
      values0 - 1st set of values.
      values1 - 2nd set of values.
      Returns:
      covariance of non-null values.
    • cov

      public static double cov(DbIntArray values0, DbIntArray values1)
      Returns the covariance. Null values are excluded.
      Parameters:
      values0 - 1st set of values.
      values1 - 2nd set of values.
      Returns:
      covariance of non-null values.
    • cor

      public static double cor(int[] values0, DbIntArray values1)
      Returns the correlation. Null values are excluded.
      Parameters:
      values0 - 1st set of values.
      values1 - 2nd set of values.
      Returns:
      correlation of non-null values.
    • cor

      public static double cor(DbIntArray values0, int[] values1)
      Returns the correlation. Null values are excluded.
      Parameters:
      values0 - 1st set of values.
      values1 - 2nd set of values.
      Returns:
      correlation of non-null values.
    • cor

      public static double cor(int[] values0, int[] values1)
      Returns the correlation. Null values are excluded.
      Parameters:
      values0 - 1st set of values.
      values1 - 2nd set of values.
      Returns:
      correlation of non-null values.
    • cor

      public static double cor(DbIntArray values0, DbIntArray values1)
      Returns the correlation. Null values are excluded.
      Parameters:
      values0 - 1st set of values.
      values1 - 2nd set of values.
      Returns:
      correlation of non-null values.
    • sum

      public static int sum(DbIntArray values)
      Returns the sum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      sum of non-null values.
    • sum

      public static int sum(int[] values)
      Returns the sum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      sum of non-null values.
    • sum

      public static int[] sum(DbArray<int[]> values)
      Returns the sum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      array of sums of non-null values.
    • sum

      public static int[] sum(int[]... values)
      Returns the sum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      array of sums of non-null values.
    • product

      public static int product(DbIntArray values)
      Returns the product. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      product of non-null values.
    • product

      public static int product(int[] values)
      Returns the product. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      product of non-null values.
    • cumMin

      public static int[] cumMin(int... values)
      Returns the cumulative minimum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      cumulative sum of non-null values.
    • cumMax

      public static int[] cumMax(int... values)
      Returns the cumulative minimum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      cumulative sum of non-null values.
    • cumsum

      public static int[] cumsum(Integer... values)
      Returns the cumulative sum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      cumulative sum of non-null values.
    • cumsum

      public static int[] cumsum(int[] values)
      Returns the cumulative sum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      cumulative sum of non-null values.
    • cumsum

      public static int[] cumsum(DbIntArray values)
      Returns the cumulative sum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      cumulative sum of non-null values.
    • cumprod

      public static int[] cumprod(Integer... values)
      Returns the cumulative product. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      cumulative product of non-null values.
    • cumprod

      public static int[] cumprod(int[] values)
      Returns the cumulative product. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      cumulative product of non-null values.
    • cumprod

      public static int[] cumprod(DbIntArray values)
      Returns the cumulative product. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      cumulative product of non-null values.
    • abs

      public static int abs(int value)
      Returns the absolute value.
      Parameters:
      value - value.
      Returns:
      absolute value.
    • acos

      public static double acos(int value)
      Returns the arc cosine.
      Parameters:
      value - value.
      Returns:
      arc cosine.
    • asin

      public static double asin(int value)
      Returns the arc sine.
      Parameters:
      value - value.
      Returns:
      arc sine.
    • atan

      public static double atan(int value)
      Returns the arc tangent.
      Parameters:
      value - value.
      Returns:
      arc tangent.
    • ceil

      public static double ceil(int value)
      Returns the ceiling. This is the smallest integer, which is greater than or equal to the value.
      Parameters:
      value - value.
      Returns:
      ceiling.
    • cos

      public static double cos(int value)
      Returns the cosine.
      Parameters:
      value - value.
      Returns:
      cosine.
    • exp

      public static double exp(int value)
      Returns Euler's number e raised to a power.
      Parameters:
      value - value.
      Returns:
      Euler's number e raised to a power.
    • floor

      public static double floor(int value)
      Returns the floor. This is the largest integer, which is less than or equal to the value.
      Parameters:
      value - value.
      Returns:
      floor.
    • log

      public static double log(int value)
      Returns the natural logarithm (base e).
      Parameters:
      value - value.
      Returns:
      natural logarithm (base e).
    • pow

      public static double pow(int a, int b)
      Returns the value of the first argument raised to the second argument.
      Parameters:
      a - the base.
      b - the exponent.
      Returns:
      a raised to the b power.
    • rint

      public static double rint(int value)
      Returns the integer closest to the input value.
      Parameters:
      value - value.
      Returns:
      integer closes to the input value.
    • round

      public static long round(int value)
      Returns the closest integer to the argument. If the argument is NaN, the result is 0. If the argument is greater than Integer.MIN_VALUE, Integer.MIN_VALUE is returned. If the argument is less than Integer.MAX_VALUE, Integer.MAX_VALUE is returned.
      Parameters:
      value - value.
    • signum

      public static int signum(int value)
      Returns the signum function.
      Parameters:
      value - value.
      Returns:
      signum function.
    • sin

      public static double sin(int value)
      Returns the sine.
      Parameters:
      value - value.
      Returns:
      sine.
    • sqrt

      public static double sqrt(int value)
      Returns the square root.
      Parameters:
      value - value.
      Returns:
      square root.
    • tan

      public static double tan(int value)
      Returns the tangent.
      Parameters:
      value - value.
      Returns:
      tangent.
    • lowerBin

      public static int lowerBin(int value, int interval)
      Returns the lower bound of the bin containing the value.
      Parameters:
      value - value.
      interval - bin width.
      Returns:
      lower bound of the bin containing the value.
    • lowerBin

      public static int lowerBin(int value, int interval, int offset)
      Returns the lower bound of the bin containing the value.
      Parameters:
      value - value.
      interval - bin width.
      offset - interval offset
      Returns:
      lower bound of the bin containing the value.
    • upperBin

      public static int upperBin(int value, int interval)
      Returns the upper bound of the bin containing the value.
      Parameters:
      value - value.
      interval - bin width.
      Returns:
      upper bound of the bin containing the value.
    • upperBin

      public static int upperBin(int value, int interval, int offset)
      Returns the upper bound of the bin containing the value.
      Parameters:
      value - value.
      interval - bin width.
      offset - interval offset
      Returns:
      upper bound of the bin containing the value.
    • clamp

      public static int clamp(int value, int min, int max)
      Constrains the value to be on the [min,max] range. If the value is less than min, min is returned. If the value is greater than max, max is returned.
      Parameters:
      value - value.
      min - minimum value.
      max - maximum value.
      Returns:
      value constrained to be in the [min,max] range.
    • wsum

      public static double wsum(int[] values, DbIntArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, int[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(int[] values, int[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, DbIntArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, DbIntArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, int[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, int[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, DbIntArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(int[] values, DbLongArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, long[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(int[] values, long[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, DbLongArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, DbLongArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, long[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, long[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, DbLongArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(int[] values, double[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, double[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(int[] values, DbDoubleArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, DbDoubleArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, DbDoubleArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, double[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, double[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, DbDoubleArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(int[] values, float[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, float[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(int[] values, DbFloatArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, DbFloatArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, DbFloatArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, float[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, float[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, DbFloatArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(int[] values, DbShortArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, short[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(int[] values, short[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wsum

      public static double wsum(DbIntArray values, DbShortArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, DbShortArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, short[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(int[] values, short[] weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

      public static double weightedSum(DbIntArray values, DbShortArray weights)
      Returns the weighted sum. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • wavg

      public static double wavg(int[] values, DbDoubleArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, double[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(int[] values, double[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, DbDoubleArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, DbDoubleArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, double[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, double[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, DbDoubleArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(int[] values, DbFloatArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, float[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(int[] values, float[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, DbFloatArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, DbFloatArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, float[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, float[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, DbFloatArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(int[] values, DbLongArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, long[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(int[] values, long[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, DbLongArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, DbLongArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, long[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, long[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, DbLongArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(int[] values, DbIntArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, int[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(int[] values, int[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, DbIntArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, DbIntArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, int[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, int[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, DbIntArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(int[] values, DbShortArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, short[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(int[] values, short[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • wavg

      public static double wavg(DbIntArray values, DbShortArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, DbShortArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, short[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(int[] values, short[] weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • weightedAvg

      public static double weightedAvg(DbIntArray values, DbShortArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • sort

      public static DbIntArray sort(DbIntArray values)
      Returns sorted values from smallest to largest.
      Parameters:
      values - values.
      Returns:
      sorted values.
    • sort

      public static int[] sort(int[] values)
      Returns sorted values from smallest to largest.
      Parameters:
      values - values.
      Returns:
      sorted values.
    • sort

      public static int[] sort(Integer... values)
      Returns sorted values from smallest to largest.
      Parameters:
      values - values.
      Returns:
      sorted values.
    • sortDescending

      public static DbIntArray sortDescending(DbIntArray values)
      Returns sorted values from largest to smallest.
      Parameters:
      values - values.
      Returns:
      sorted values.
    • sortDescending

      public static int[] sortDescending(int[] values)
      Returns sorted values from largest to smallest.
      Parameters:
      values - values.
      Returns:
      sorted values.
    • sortDescending

      public static int[] sortDescending(Integer... values)
      Returns sorted values from largest to smallest.
      Parameters:
      values - values.
      Returns:
      sorted values.
    • sequence

      public static int[] sequence(int start, int end, int step)
      Returns a sequence of values.
      Parameters:
      start - starting value.
      end - terminal value.
      step - step size.
      Returns:
      sequence of values from start to end.