Class ByteNumericPrimitives

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    • ByteNumericPrimitives

      public ByteNumericPrimitives()
  • Method Details

    • countPos

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static byte lowerBin(byte value, byte 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 byte lowerBin(byte value, byte interval, byte 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 byte upperBin(byte value, byte 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 byte upperBin(byte value, byte interval, byte 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 byte clamp(byte value, byte min, byte 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(byte[] values, DbByteArray 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(DbByteArray values, byte[] 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(byte[] values, byte[] 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(DbByteArray values, DbByteArray 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(byte[] values, DbByteArray 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(DbByteArray values, byte[] 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(byte[] values, byte[] 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(DbByteArray values, DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] 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(DbByteArray 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(byte[] values, DbByteArray 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(DbByteArray values, byte[] 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(byte[] values, byte[] 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(DbByteArray values, DbByteArray 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(byte[] values, DbByteArray 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(DbByteArray values, byte[] 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(byte[] values, byte[] 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(DbByteArray values, DbByteArray weights)
      Returns the weighted average. Null values are excluded.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted average of non-null values.
    • sort

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

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

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

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

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

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

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