Class ShortNumericPrimitives

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    • ShortNumericPrimitives

      public ShortNumericPrimitives()
  • Method Details

    • countPos

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

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

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

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

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

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

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

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

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

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

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

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

      public static double absAvg(Short... 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(short[] 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(DbShortArray 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(Short... values)
      Returns the variance. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      variance of non-null values.
    • var

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

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

      public static double wvar(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(Short... values)
      Returns the standard deviation. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      standard deviation of non-null values.
    • std

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

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

      public static double wstd(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(Short... values)
      Returns the standard error. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      standard error of non-null values.
    • ste

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

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

      public static double wste(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(Short... values)
      Returns the t-statistic. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      t-statistic of non-null values.
    • tstat

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

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

      public static double wtstat(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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 short max(DbShortArray values)
      Returns the maximum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      maximum of non-null values.
    • max

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

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

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

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

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

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

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

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

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

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

      public static int firstIndexOf(short[] values, short 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(DbShortArray values, short 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(Short... values)
      Returns the index of the maximum value.
      Parameters:
      values - values.
      Returns:
      index of the maximum value.
    • indexOfMax

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

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

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

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

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

      public static int binSearchIndex(short[] values, short 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(DbShortArray values, short 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(short[] values, short 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(DbShortArray values, short 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(short[] values0, DbShortArray 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(DbShortArray values0, short[] 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(short[] values0, short[] 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(DbShortArray values0, DbShortArray 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(short[] values0, DbShortArray 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(DbShortArray values0, short[] 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(short[] values0, short[] 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(DbShortArray values0, DbShortArray 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 short sum(DbShortArray values)
      Returns the sum. Null values are excluded.
      Parameters:
      values - values.
      Returns:
      sum of non-null values.
    • sum

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static double ceil(short 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(short value)
      Returns the cosine.
      Parameters:
      value - value.
      Returns:
      cosine.
    • exp

      public static double exp(short 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(short 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(short value)
      Returns the natural logarithm (base e).
      Parameters:
      value - value.
      Returns:
      natural logarithm (base e).
    • pow

      public static double pow(short a, short 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(short value)
      Returns the integer closest to the input value.
      Parameters:
      value - value.
      Returns:
      integer closes to the input value.
    • round

      public static long round(short 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 short signum(short value)
      Returns the signum function.
      Parameters:
      value - value.
      Returns:
      signum function.
    • sin

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

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

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

      public static short lowerBin(short value, short 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 short lowerBin(short value, short interval, short 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 short upperBin(short value, short 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 short upperBin(short value, short interval, short 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 short clamp(short value, short min, short 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray values, DbIntArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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(short[] 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(DbShortArray 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 DbShortArray sort(DbShortArray values)
      Returns sorted values from smallest to largest.
      Parameters:
      values - values.
      Returns:
      sorted values.
    • sort

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

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

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

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

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

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