Class FloatNumericPrimitives

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    • FloatNumericPrimitives

      public FloatNumericPrimitives()
  • Method Details

    • countPos

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static float max(DbFloatArray values)
      Returns the maximum. Null and NaN values are excluded.
      Parameters:
      values - values.
      Returns:
      maximum of non-null, non-NaN values.
    • max

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

      public static float max(Float... values)
      Returns the maximum. Null and NaN values are excluded.
      Parameters:
      values - values.
      Returns:
      maximum of non-null, non-NaN values.
    • min

      public static float min(DbFloatArray values)
      Returns the minimum. Null and NaN values are excluded.
      Parameters:
      values - values.
      Returns:
      minimum of non-null, non-NaN values.
    • min

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

      public static float min(Float... values)
      Returns the minimum. Null and NaN values are excluded.
      Parameters:
      values - values.
      Returns:
      minimum of non-null, non-NaN values.
    • median

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

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

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

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

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

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

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

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

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

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

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

      public static int binSearchIndex(float[] values, float 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 of where the key would be inserted.
    • binSearchIndex

      public static int binSearchIndex(DbFloatArray values, float 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 of where the key would be inserted.
    • rawBinSearchIndex

      public static int rawBinSearchIndex(float[] values, float 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(DbFloatArray values, float 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(float[] values0, DbFloatArray values1)
      Returns the covariance. Null values are excluded. NaN values are included.
      Parameters:
      values0 - 1st set of values.
      values1 - 2nd set of values.
      Returns:
      covariance of non-null values.
    • cov

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

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

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

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

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

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

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

      public static float sum(DbFloatArray values)
      Returns the sum. Null values are excluded. NaN values are included.
      Parameters:
      values - values.
      Returns:
      sum of non-null values.
    • sum

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

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

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

      public static float product(DbFloatArray values)
      Returns the product. Null values are excluded. NaN values are included.
      Parameters:
      values - values.
      Returns:
      product of non-null values.
    • product

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static float lowerBin(float value, float 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 float lowerBin(float value, float interval, float 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 float upperBin(float value, float 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 float upperBin(float value, float interval, float 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 float clamp(float value, float min, float 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(float[] values, DbFloatArray weights)
      Returns the weighted sum. Null values are excluded. NaN values are included.
      Parameters:
      values - values.
      weights - weights
      Returns:
      weighted sum of non-null values.
    • weightedSum

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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