Package com.illumon.iris.libs.primitives
Class ByteNumericPrimitives
java.lang.Object
com.illumon.iris.libs.primitives.ByteNumericPrimitives
A set of commonly used numeric functions that can be applied to Byte types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byteabs(byte value) Returns the absolute value.static doubleabsAvg(byte[] values) Returns the mean of the absolute values of values.static doubleabsAvg(DbByteArray values) Returns the mean of the absolute values of values.static doubleReturns the mean of the absolute values of values.static doubleacos(byte value) Returns the arc cosine.static doubleasin(byte value) Returns the arc sine.static doubleatan(byte value) Returns the arc tangent.static doubleavg(byte[] values) Returns the mean.static doubleavg(DbByteArray values) Returns the mean.static doubleReturns the mean.static intbinSearchIndex(byte[] values, byte key, BinSearch choiceWhenEquals) Performs a binary search to find a key.static intbinSearchIndex(DbByteArray values, byte key, BinSearch choiceWhenEquals) Performs a binary search to find a key.static doubleceil(byte value) Returns the ceiling.static byteclamp(byte value, byte min, byte max) Constrains the value to be on the[min,max]range.static doublecor(byte[] values0, byte[] values1) Returns the correlation.static doublecor(byte[] values0, DbByteArray values1) Returns the correlation.static doublecor(DbByteArray values0, byte[] values1) Returns the correlation.static doublecor(DbByteArray values0, DbByteArray values1) Returns the correlation.static doublecos(byte value) Returns the cosine.static intcountNeg(byte[] values) Counts the number of negative values.static intcountNeg(DbByteArray values) Counts the number of negative values.static intCounts the number of negative values.static intcountPos(byte[] values) Counts the number of positive values.static intcountPos(DbByteArray values) Counts the number of positive values.static intCounts the number of positive values.static intcountZero(byte[] values) Counts the number of zero values.static intcountZero(DbByteArray values) Counts the number of zero values.static intCounts the number of zero values.static doublecov(byte[] values0, byte[] values1) Returns the covariance.static doublecov(byte[] values0, DbByteArray values1) Returns the covariance.static doublecov(DbByteArray values0, byte[] values1) Returns the covariance.static doublecov(DbByteArray values0, DbByteArray values1) Returns the covariance.static byte[]cumMax(byte... values) Returns the cumulative minimum.static byte[]cumMin(byte... values) Returns the cumulative minimum.static byte[]cumprod(byte[] values) Returns the cumulative product.static byte[]cumprod(DbByteArray values) Returns the cumulative product.static byte[]Returns the cumulative product.static byte[]cumsum(byte[] values) Returns the cumulative sum.static byte[]cumsum(DbByteArray values) Returns the cumulative sum.static byte[]Returns the cumulative sum.static doubleexp(byte value) Returns Euler's number e raised to a power.static intfirstIndexOf(byte[] values, byte val) Returns the first index containing the value.static intfirstIndexOf(DbByteArray values, byte val) Returns the first index containing the value.static doublefloor(byte value) Returns the floor.static intindexOfMax(byte[] values) Returns the index of the maximum value.static intindexOfMax(DbByteArray values) Returns the index of the maximum value.static intindexOfMax(Byte... values) Returns the index of the maximum value.static intindexOfMin(byte[] values) Returns the index of the minimum value.static intindexOfMin(DbByteArray values) Returns the index of the minimum value.static intindexOfMin(Byte... values) Returns the index of the minimum value.static doublelog(byte value) Returns the natural logarithm (base e).static bytelowerBin(byte value, byte interval) Returns the lower bound of the bin containing the value.static bytelowerBin(byte value, byte interval, byte offset) Returns the lower bound of the bin containing the value.static bytemax(byte[] values) Returns the maximum.static bytemax(DbByteArray values) Returns the maximum.static byteReturns the maximum.static doublemedian(byte[] values) Returns the median.static doublemedian(DbByteArray values) Returns the median.static doubleReturns the median.static bytemin(byte[] values) Returns the minimum.static bytemin(DbByteArray values) Returns the minimum.static byteReturns the minimum.static doublepercentile(double percentile, byte... values) Returns the percentile.static doublepercentile(double percentile, DbByteArray values) Returns the percentile.static doublepow(byte a, byte b) Returns the value of the first argument raised to the second argument.static byteproduct(byte[] values) Returns the product.static byteproduct(DbByteArray values) Returns the product.static intrawBinSearchIndex(byte[] values, byte key, BinSearch choiceWhenEquals) Performs a binary search to find a key.static intrawBinSearchIndex(DbByteArray values, byte key, BinSearch choiceWhenEquals) Performs a binary search to find a key.static doublerint(byte value) Returns the integer closest to the input value.static longround(byte value) Returns the closest integer to the argument.static byte[]sequence(byte start, byte end, byte step) Returns a sequence of values.static bytesignum(byte value) Returns the signum function.static doublesin(byte value) Returns the sine.static byte[]sort(byte[] values) Returns sorted values from smallest to largest.static DbByteArraysort(DbByteArray values) Returns sorted values from smallest to largest.static byte[]Returns sorted values from smallest to largest.static byte[]sortDescending(byte[] values) Returns sorted values from largest to smallest.static DbByteArraysortDescending(DbByteArray values) Returns sorted values from largest to smallest.static byte[]sortDescending(Byte... values) Returns sorted values from largest to smallest.static doublesqrt(byte value) Returns the square root.static doublestd(byte[] values) Returns the standard deviation.static doublestd(DbByteArray values) Returns the standard deviation.static doubleReturns the standard deviation.static doubleste(byte[] values) Returns the standard error.static doubleste(DbByteArray values) Returns the standard error.static doubleReturns the standard error.static bytesum(byte[] values) Returns the sum.static byte[]sum(byte[]... values) Returns the sum.static byte[]Returns the sum.static bytesum(DbByteArray values) Returns the sum.static doubletan(byte value) Returns the tangent.static doubletstat(byte[] values) Returns the t-statistic.static doubletstat(DbByteArray values) Returns the t-statistic.static doubleReturns the t-statistic.static byteupperBin(byte value, byte interval) Returns the upper bound of the bin containing the value.static byteupperBin(byte value, byte interval, byte offset) Returns the upper bound of the bin containing the value.static doublevar(byte[] values) Returns the variance.static doublevar(DbByteArray values) Returns the variance.static doubleReturns the variance.static doublewavg(byte[] values, byte[] weights) Returns the weighted average.static doublewavg(byte[] values, double[] weights) Returns the weighted average.static doublewavg(byte[] values, float[] weights) Returns the weighted average.static doublewavg(byte[] values, int[] weights) Returns the weighted average.static doublewavg(byte[] values, long[] weights) Returns the weighted average.static doublewavg(byte[] values, DbByteArray weights) Returns the weighted average.static doublewavg(byte[] values, DbDoubleArray weights) Returns the weighted average.static doublewavg(byte[] values, DbFloatArray weights) Returns the weighted average.static doublewavg(byte[] values, DbIntArray weights) Returns the weighted average.static doublewavg(byte[] values, DbLongArray weights) Returns the weighted average.static doublewavg(DbByteArray values, byte[] weights) Returns the weighted average.static doublewavg(DbByteArray values, double[] weights) Returns the weighted average.static doublewavg(DbByteArray values, float[] weights) Returns the weighted average.static doublewavg(DbByteArray values, int[] weights) Returns the weighted average.static doublewavg(DbByteArray values, long[] weights) Returns the weighted average.static doublewavg(DbByteArray values, DbByteArray weights) Returns the weighted average.static doublewavg(DbByteArray values, DbDoubleArray weights) Returns the weighted average.static doublewavg(DbByteArray values, DbFloatArray weights) Returns the weighted average.static doublewavg(DbByteArray values, DbIntArray weights) Returns the weighted average.static doublewavg(DbByteArray values, DbLongArray weights) Returns the weighted average.static doubleweightedAvg(byte[] values, byte[] weights) Returns the weighted average.static doubleweightedAvg(byte[] values, double[] weights) Returns the weighted average.static doubleweightedAvg(byte[] values, float[] weights) Returns the weighted average.static doubleweightedAvg(byte[] values, int[] weights) Returns the weighted average.static doubleweightedAvg(byte[] values, long[] weights) Returns the weighted average.static doubleweightedAvg(byte[] values, DbByteArray weights) Returns the weighted average.static doubleweightedAvg(byte[] values, DbDoubleArray weights) Returns the weighted average.static doubleweightedAvg(byte[] values, DbFloatArray weights) Returns the weighted average.static doubleweightedAvg(byte[] values, DbIntArray weights) Returns the weighted average.static doubleweightedAvg(byte[] values, DbLongArray weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, byte[] weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, double[] weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, float[] weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, int[] weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, long[] weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, DbByteArray weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, DbDoubleArray weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, DbFloatArray weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, DbIntArray weights) Returns the weighted average.static doubleweightedAvg(DbByteArray values, DbLongArray weights) Returns the weighted average.static doubleweightedSum(byte[] values, byte[] weights) Returns the weighted sum.static doubleweightedSum(byte[] values, double[] weights) Returns the weighted sum.static doubleweightedSum(byte[] values, float[] weights) Returns the weighted sum.static doubleweightedSum(byte[] values, int[] weights) Returns the weighted sum.static doubleweightedSum(byte[] values, long[] weights) Returns the weighted sum.static doubleweightedSum(byte[] values, DbByteArray weights) Returns the weighted sum.static doubleweightedSum(byte[] values, DbDoubleArray weights) Returns the weighted sum.static doubleweightedSum(byte[] values, DbFloatArray weights) Returns the weighted sum.static doubleweightedSum(byte[] values, DbIntArray weights) Returns the weighted sum.static doubleweightedSum(byte[] values, DbLongArray weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, byte[] weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, double[] weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, float[] weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, int[] weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, long[] weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, DbByteArray weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, DbDoubleArray weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, DbFloatArray weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, DbIntArray weights) Returns the weighted sum.static doubleweightedSum(DbByteArray values, DbLongArray weights) Returns the weighted sum.static doublewstd(byte[] values, byte[] weights) Returns the weighted standard deviation.static doublewstd(byte[] values, double[] weights) Returns the weighted standard deviation.static doublewstd(byte[] values, float[] weights) Returns the weighted standard deviation.static doublewstd(byte[] values, int[] weights) Returns the weighted standard deviation.static doublewstd(byte[] values, long[] weights) Returns the weighted standard deviation.static doublewstd(byte[] values, DbByteArray weights) Returns the weighted standard deviation.static doublewstd(byte[] values, DbDoubleArray weights) Returns the weighted standard deviation.static doublewstd(byte[] values, DbFloatArray weights) Returns the weighted standard deviation.static doublewstd(byte[] values, DbIntArray weights) Returns the weighted standard deviation.static doublewstd(byte[] values, DbLongArray weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, byte[] weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, double[] weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, float[] weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, int[] weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, long[] weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, DbByteArray weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, DbDoubleArray weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, DbFloatArray weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, DbIntArray weights) Returns the weighted standard deviation.static doublewstd(DbByteArray values, DbLongArray weights) Returns the weighted standard deviation.static doublewste(byte[] values, byte[] weights) Returns the weighted standard error.static doublewste(byte[] values, double[] weights) Returns the weighted standard error.static doublewste(byte[] values, float[] weights) Returns the weighted standard error.static doublewste(byte[] values, int[] weights) Returns the weighted standard error.static doublewste(byte[] values, long[] weights) Returns the weighted standard error.static doublewste(byte[] values, DbByteArray weights) Returns the weighted standard error.static doublewste(byte[] values, DbDoubleArray weights) Returns the weighted standard error.static doublewste(byte[] values, DbFloatArray weights) Returns the weighted standard error.static doublewste(byte[] values, DbIntArray weights) Returns the weighted standard error.static doublewste(byte[] values, DbLongArray weights) Returns the weighted standard error.static doublewste(DbByteArray values, byte[] weights) Returns the weighted standard error.static doublewste(DbByteArray values, double[] weights) Returns the weighted standard error.static doublewste(DbByteArray values, float[] weights) Returns the weighted standard error.static doublewste(DbByteArray values, int[] weights) Returns the weighted standard error.static doublewste(DbByteArray values, long[] weights) Returns the weighted standard error.static doublewste(DbByteArray values, DbByteArray weights) Returns the weighted standard error.static doublewste(DbByteArray values, DbDoubleArray weights) Returns the weighted standard error.static doublewste(DbByteArray values, DbFloatArray weights) Returns the weighted standard error.static doublewste(DbByteArray values, DbIntArray weights) Returns the weighted standard error.static doublewste(DbByteArray values, DbLongArray weights) Returns the weighted standard error.static doublewsum(byte[] values, byte[] weights) Returns the weighted sum.static doublewsum(byte[] values, double[] weights) Returns the weighted sum.static doublewsum(byte[] values, float[] weights) Returns the weighted sum.static doublewsum(byte[] values, int[] weights) Returns the weighted sum.static doublewsum(byte[] values, long[] weights) Returns the weighted sum.static doublewsum(byte[] values, DbByteArray weights) Returns the weighted sum.static doublewsum(byte[] values, DbDoubleArray weights) Returns the weighted sum.static doublewsum(byte[] values, DbFloatArray weights) Returns the weighted sum.static doublewsum(byte[] values, DbIntArray weights) Returns the weighted sum.static doublewsum(byte[] values, DbLongArray weights) Returns the weighted sum.static doublewsum(DbByteArray values, byte[] weights) Returns the weighted sum.static doublewsum(DbByteArray values, double[] weights) Returns the weighted sum.static doublewsum(DbByteArray values, float[] weights) Returns the weighted sum.static doublewsum(DbByteArray values, int[] weights) Returns the weighted sum.static doublewsum(DbByteArray values, long[] weights) Returns the weighted sum.static doublewsum(DbByteArray values, DbByteArray weights) Returns the weighted sum.static doublewsum(DbByteArray values, DbDoubleArray weights) Returns the weighted sum.static doublewsum(DbByteArray values, DbFloatArray weights) Returns the weighted sum.static doublewsum(DbByteArray values, DbIntArray weights) Returns the weighted sum.static doublewsum(DbByteArray values, DbLongArray weights) Returns the weighted sum.static doublewtstat(byte[] values, byte[] weights) Returns the weighted t-statistic.static doublewtstat(byte[] values, double[] weights) Returns the weighted t-statistic.static doublewtstat(byte[] values, float[] weights) Returns the weighted t-statistic.static doublewtstat(byte[] values, int[] weights) Returns the weighted t-statistic.static doublewtstat(byte[] values, long[] weights) Returns the weighted t-statistic.static doublewtstat(byte[] values, DbByteArray weights) Returns the weighted t-statistic.static doublewtstat(byte[] values, DbDoubleArray weights) Returns the weighted t-statistic.static doublewtstat(byte[] values, DbFloatArray weights) Returns the weighted t-statistic.static doublewtstat(byte[] values, DbIntArray weights) Returns the weighted t-statistic.static doublewtstat(byte[] values, DbLongArray weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, byte[] weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, double[] weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, float[] weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, int[] weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, long[] weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, DbByteArray weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, DbDoubleArray weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, DbFloatArray weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, DbIntArray weights) Returns the weighted t-statistic.static doublewtstat(DbByteArray values, DbLongArray weights) Returns the weighted t-statistic.static doublewvar(byte[] values, byte[] weights) Returns the weighted variance.static doublewvar(byte[] values, double[] weights) Returns the weighted variance.static doublewvar(byte[] values, float[] weights) Returns the weighted variance.static doublewvar(byte[] values, int[] weights) Returns the weighted variance.static doublewvar(byte[] values, long[] weights) Returns the weighted variance.static doublewvar(byte[] values, DbByteArray weights) Returns the weighted variance.static doublewvar(byte[] values, DbDoubleArray weights) Returns the weighted variance.static doublewvar(byte[] values, DbFloatArray weights) Returns the weighted variance.static doublewvar(byte[] values, DbIntArray weights) Returns the weighted variance.static doublewvar(byte[] values, DbLongArray weights) Returns the weighted variance.static doublewvar(DbByteArray values, byte[] weights) Returns the weighted variance.static doublewvar(DbByteArray values, double[] weights) Returns the weighted variance.static doublewvar(DbByteArray values, float[] weights) Returns the weighted variance.static doublewvar(DbByteArray values, int[] weights) Returns the weighted variance.static doublewvar(DbByteArray values, long[] weights) Returns the weighted variance.static doublewvar(DbByteArray values, DbByteArray weights) Returns the weighted variance.static doublewvar(DbByteArray values, DbDoubleArray weights) Returns the weighted variance.static doublewvar(DbByteArray values, DbFloatArray weights) Returns the weighted variance.static doublewvar(DbByteArray values, DbIntArray weights) Returns the weighted variance.static doublewvar(DbByteArray values, DbLongArray weights) Returns the weighted variance.
-
Constructor Details
-
ByteNumericPrimitives
public ByteNumericPrimitives()
-
-
Method Details
-
countPos
Counts the number of positive values.- Parameters:
values- values.- Returns:
- number of positive values.
-
countPos
public static int countPos(byte[] values) Counts the number of positive values.- Parameters:
values- values.- Returns:
- number of positive values.
-
countPos
Counts the number of positive values.- Parameters:
values- values.- Returns:
- number of positive values.
-
countNeg
Counts the number of negative values.- Parameters:
values- values.- Returns:
- number of negative values.
-
countNeg
public static int countNeg(byte[] values) Counts the number of negative values.- Parameters:
values- values.- Returns:
- number of negative values.
-
countNeg
Counts the number of negative values.- Parameters:
values- values.- Returns:
- number of negative values.
-
countZero
Counts the number of zero values.- Parameters:
values- values.- Returns:
- number of zero values.
-
countZero
public static int countZero(byte[] values) Counts the number of zero values.- Parameters:
values- values.- Returns:
- number of zero values.
-
countZero
Counts the number of zero values.- Parameters:
values- values.- Returns:
- number of zero values.
-
avg
Returns the mean. Null values are excluded.- Parameters:
values- values.- Returns:
- mean of non-null values.
-
avg
public static double avg(byte[] values) Returns the mean. Null values are excluded.- Parameters:
values- values.- Returns:
- mean of non-null values.
-
avg
Returns the mean. Null values are excluded.- Parameters:
values- values.- Returns:
- mean of non-null values.
-
absAvg
Returns the mean of the absolute values of values. Null values are excluded.- Parameters:
values- values.- Returns:
- mean of the absolute value of non-null values.
-
absAvg
public static double absAvg(byte[] values) Returns the mean of the absolute values of values. Null values are excluded.- Parameters:
values- values.- Returns:
- mean of the absolute value of non-null values.
-
absAvg
Returns the mean of the absolute values of values. Null values are excluded.- Parameters:
values- values.- Returns:
- mean of the absolute value of non-null values.
-
var
Returns the variance. Null values are excluded.- Parameters:
values- values.- Returns:
- variance of non-null values.
-
var
public static double var(byte[] values) Returns the variance. Null values are excluded.- Parameters:
values- values.- Returns:
- variance of non-null values.
-
var
Returns the variance. Null values are excluded.- Parameters:
values- values.- Returns:
- variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
public static double wvar(byte[] values, double[] weights) Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
public static double wvar(byte[] values, float[] weights) Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
public static double wvar(byte[] values, byte[] weights) Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
public static double wvar(byte[] values, int[] weights) Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
public static double wvar(byte[] values, long[] weights) Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
wvar
Returns the weighted variance. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted variance of non-null values.
-
std
Returns the standard deviation. Null values are excluded.- Parameters:
values- values.- Returns:
- standard deviation of non-null values.
-
std
public static double std(byte[] values) Returns the standard deviation. Null values are excluded.- Parameters:
values- values.- Returns:
- standard deviation of non-null values.
-
std
Returns the standard deviation. Null values are excluded.- Parameters:
values- values.- Returns:
- standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
public static double wstd(byte[] values, double[] weights) Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
public static double wstd(byte[] values, float[] weights) Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
public static double wstd(byte[] values, byte[] weights) Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
public static double wstd(byte[] values, int[] weights) Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
public static double wstd(byte[] values, long[] weights) Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
wstd
Returns the weighted standard deviation. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard deviation of non-null values.
-
ste
Returns the standard error. Null values are excluded.- Parameters:
values- values.- Returns:
- standard error of non-null values.
-
ste
public static double ste(byte[] values) Returns the standard error. Null values are excluded.- Parameters:
values- values.- Returns:
- standard error of non-null values.
-
ste
Returns the standard error. Null values are excluded.- Parameters:
values- values.- Returns:
- standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
public static double wste(byte[] values, double[] weights) Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
public static double wste(byte[] values, float[] weights) Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
public static double wste(byte[] values, byte[] weights) Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
public static double wste(byte[] values, int[] weights) Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
public static double wste(byte[] values, long[] weights) Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
wste
Returns the weighted standard error. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted standard error of non-null values.
-
tstat
Returns the t-statistic. Null values are excluded.- Parameters:
values- values.- Returns:
- t-statistic of non-null values.
-
tstat
public static double tstat(byte[] values) Returns the t-statistic. Null values are excluded.- Parameters:
values- values.- Returns:
- t-statistic of non-null values.
-
tstat
Returns the t-statistic. Null values are excluded.- Parameters:
values- values.- Returns:
- t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
public static double wtstat(byte[] values, double[] weights) Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
public static double wtstat(byte[] values, float[] weights) Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
public static double wtstat(byte[] values, byte[] weights) Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
public static double wtstat(byte[] values, int[] weights) Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
public static double wtstat(byte[] values, long[] weights) Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
wtstat
Returns the weighted t-statistic. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted t-statistic of non-null values.
-
max
Returns the maximum. Null values are excluded.- Parameters:
values- values.- Returns:
- maximum of non-null values.
-
max
public static byte max(byte[] values) Returns the maximum. Null values are excluded.- Parameters:
values- values.- Returns:
- maximum of non-null values.
-
max
Returns the maximum. Null values are excluded.- Parameters:
values- values.- Returns:
- maximum of non-null values.
-
min
Returns the minimum. Null values are excluded.- Parameters:
values- values.- Returns:
- minimum of non-null values.
-
min
public static byte min(byte[] values) Returns the minimum. Null values are excluded.- Parameters:
values- values.- Returns:
- minimum of non-null values.
-
min
Returns the minimum. Null values are excluded.- Parameters:
values- values.- Returns:
- minimum of non-null values.
-
median
Returns the median.- Parameters:
values- values.- Returns:
- median.
-
median
public static double median(byte[] values) Returns the median.- Parameters:
values- values.- Returns:
- median.
-
median
Returns the median.- Parameters:
values- values.- Returns:
- median.
-
percentile
public static double percentile(double percentile, byte... values) Returns the percentile.- Parameters:
percentile- percentile to compute.values- values.- Returns:
- percentile.
-
percentile
Returns the percentile.- Parameters:
percentile- percentile to compute.values- values.- Returns:
- percentile.
-
firstIndexOf
public static int firstIndexOf(byte[] values, byte val) Returns the first index containing the value.- Parameters:
values- values.val- value to search for.- Returns:
- first index containing the value or null, if the value is not present.
-
firstIndexOf
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
Returns the index of the maximum value.- Parameters:
values- values.- Returns:
- index of the maximum value.
-
indexOfMax
public static int indexOfMax(byte[] values) Returns the index of the maximum value.- Parameters:
values- values.- Returns:
- index of the maximum value.
-
indexOfMax
Returns the index of the maximum value.- Parameters:
values- values.- Returns:
- index of the maximum value.
-
indexOfMin
Returns the index of the minimum value.- Parameters:
values- values.- Returns:
- index of the minimum value.
-
indexOfMin
public static int indexOfMin(byte[] values) Returns the index of the minimum value.- Parameters:
values- values.- Returns:
- index of the minimum value.
-
indexOfMin
Returns the index of the minimum value.- Parameters:
values- values.- Returns:
- index of the minimum value.
-
binSearchIndex
Performs a binary search to find a key.- Parameters:
values- sorted values to search.key- key to search for.choiceWhenEquals- algorithm used to resolve ties when performing a binary search.- Returns:
- index of the search key, if it is contained in the array; otherwise, the index immediately before where the key would be inserted.
-
binSearchIndex
Performs a binary search to find a key.- Parameters:
values- sorted values to search.key- key to search for.choiceWhenEquals- algorithm used to resolve ties when performing a binary search.- Returns:
- index of the search key, if it is contained in the array; otherwise, the index immediately before where the key would be inserted.
-
rawBinSearchIndex
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
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
Returns the covariance. Null values are excluded.- Parameters:
values0- 1st set of values.values1- 2nd set of values.- Returns:
- covariance of non-null values.
-
cov
Returns the covariance. Null values are excluded.- Parameters:
values0- 1st set of values.values1- 2nd set of values.- Returns:
- covariance of non-null values.
-
cov
public static double cov(byte[] values0, byte[] values1) Returns the covariance. Null values are excluded.- Parameters:
values0- 1st set of values.values1- 2nd set of values.- Returns:
- covariance of non-null values.
-
cov
Returns the covariance. Null values are excluded.- Parameters:
values0- 1st set of values.values1- 2nd set of values.- Returns:
- covariance of non-null values.
-
cor
Returns the correlation. Null values are excluded.- Parameters:
values0- 1st set of values.values1- 2nd set of values.- Returns:
- correlation of non-null values.
-
cor
Returns the correlation. Null values are excluded.- Parameters:
values0- 1st set of values.values1- 2nd set of values.- Returns:
- correlation of non-null values.
-
cor
public static double cor(byte[] values0, byte[] values1) Returns the correlation. Null values are excluded.- Parameters:
values0- 1st set of values.values1- 2nd set of values.- Returns:
- correlation of non-null values.
-
cor
Returns the correlation. Null values are excluded.- Parameters:
values0- 1st set of values.values1- 2nd set of values.- Returns:
- correlation of non-null values.
-
sum
Returns the sum. Null values are excluded.- Parameters:
values- values.- Returns:
- sum of non-null values.
-
sum
public static byte sum(byte[] values) Returns the sum. Null values are excluded.- Parameters:
values- values.- Returns:
- sum of non-null values.
-
sum
Returns the sum. Null values are excluded.- Parameters:
values- values.- Returns:
- array of sums of non-null values.
-
sum
public static byte[] sum(byte[]... values) Returns the sum. Null values are excluded.- Parameters:
values- values.- Returns:
- array of sums of non-null values.
-
product
Returns the product. Null values are excluded.- Parameters:
values- values.- Returns:
- product of non-null values.
-
product
public static byte product(byte[] values) Returns the product. Null values are excluded.- Parameters:
values- values.- Returns:
- product of non-null values.
-
cumMin
public static byte[] cumMin(byte... values) Returns the cumulative minimum. Null values are excluded.- Parameters:
values- values.- Returns:
- cumulative sum of non-null values.
-
cumMax
public static byte[] cumMax(byte... values) Returns the cumulative minimum. Null values are excluded.- Parameters:
values- values.- Returns:
- cumulative sum of non-null values.
-
cumsum
Returns the cumulative sum. Null values are excluded.- Parameters:
values- values.- Returns:
- cumulative sum of non-null values.
-
cumsum
public static byte[] cumsum(byte[] values) Returns the cumulative sum. Null values are excluded.- Parameters:
values- values.- Returns:
- cumulative sum of non-null values.
-
cumsum
Returns the cumulative sum. Null values are excluded.- Parameters:
values- values.- Returns:
- cumulative sum of non-null values.
-
cumprod
Returns the cumulative product. Null values are excluded.- Parameters:
values- values.- Returns:
- cumulative product of non-null values.
-
cumprod
public static byte[] cumprod(byte[] values) Returns the cumulative product. Null values are excluded.- Parameters:
values- values.- Returns:
- cumulative product of non-null values.
-
cumprod
Returns the cumulative product. Null values are excluded.- Parameters:
values- values.- Returns:
- cumulative product of non-null values.
-
abs
public static byte abs(byte value) Returns the absolute value.- Parameters:
value- value.- Returns:
- absolute value.
-
acos
public static double acos(byte value) Returns the arc cosine.- Parameters:
value- value.- Returns:
- arc cosine.
-
asin
public static double asin(byte value) Returns the arc sine.- Parameters:
value- value.- Returns:
- arc sine.
-
atan
public static double atan(byte value) Returns the arc tangent.- Parameters:
value- value.- Returns:
- arc tangent.
-
ceil
public static double ceil(byte value) Returns the ceiling. This is the smallest integer, which is greater than or equal to the value.- Parameters:
value- value.- Returns:
- ceiling.
-
cos
public static double cos(byte value) Returns the cosine.- Parameters:
value- value.- Returns:
- cosine.
-
exp
public static double exp(byte value) Returns Euler's number e raised to a power.- Parameters:
value- value.- Returns:
- Euler's number e raised to a power.
-
floor
public static double floor(byte value) Returns the floor. This is the largest integer, which is less than or equal to the value.- Parameters:
value- value.- Returns:
- floor.
-
log
public static double log(byte value) Returns the natural logarithm (base e).- Parameters:
value- value.- Returns:
- natural logarithm (base e).
-
pow
public static double pow(byte a, byte b) Returns the value of the first argument raised to the second argument.- Parameters:
a- the base.b- the exponent.- Returns:
araised to thebpower.
-
rint
public static double rint(byte value) Returns the integer closest to the input value.- Parameters:
value- value.- Returns:
- integer closes to the input value.
-
round
public static long round(byte value) Returns the closest integer to the argument. If the argument is NaN, the result is 0. If the argument is greater thanInteger.MIN_VALUE,Integer.MIN_VALUEis returned. If the argument is less thanInteger.MAX_VALUE,Integer.MAX_VALUEis returned.- Parameters:
value- value.
-
signum
public static byte signum(byte value) Returns the signum function.- Parameters:
value- value.- Returns:
- signum function.
-
sin
public static double sin(byte value) Returns the sine.- Parameters:
value- value.- Returns:
- sine.
-
sqrt
public static double sqrt(byte value) Returns the square root.- Parameters:
value- value.- Returns:
- square root.
-
tan
public static double tan(byte value) Returns the tangent.- Parameters:
value- value.- Returns:
- tangent.
-
lowerBin
public static byte lowerBin(byte value, byte interval) Returns the lower bound of the bin containing the value.- Parameters:
value- value.interval- bin width.- Returns:
- lower bound of the bin containing the value.
-
lowerBin
public static byte lowerBin(byte value, byte interval, byte offset) Returns the lower bound of the bin containing the value.- Parameters:
value- value.interval- bin width.offset- interval offset- Returns:
- lower bound of the bin containing the value.
-
upperBin
public static byte upperBin(byte value, byte interval) Returns the upper bound of the bin containing the value.- Parameters:
value- value.interval- bin width.- Returns:
- upper bound of the bin containing the value.
-
upperBin
public static byte upperBin(byte value, byte interval, byte offset) Returns the upper bound of the bin containing the value.- Parameters:
value- value.interval- bin width.offset- interval offset- Returns:
- upper bound of the bin containing the value.
-
clamp
public static byte clamp(byte value, byte min, byte max) Constrains the value to be on the[min,max]range. If the value is less thanmin,minis returned. If the value is greater thanmax,maxis returned.- Parameters:
value- value.min- minimum value.max- maximum value.- Returns:
- value constrained to be in the
[min,max]range.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
public static double wsum(byte[] values, byte[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
public static double weightedSum(byte[] values, byte[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
public static double wsum(byte[] values, long[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
public static double weightedSum(byte[] values, long[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
public static double wsum(byte[] values, double[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
public static double weightedSum(byte[] values, double[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
public static double wsum(byte[] values, float[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
public static double weightedSum(byte[] values, float[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
public static double wsum(byte[] values, int[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wsum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
public static double weightedSum(byte[] values, int[] weights) Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
weightedSum
Returns the weighted sum. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted sum of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
public static double wavg(byte[] values, double[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
public static double weightedAvg(byte[] values, double[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
public static double wavg(byte[] values, float[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
public static double weightedAvg(byte[] values, float[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
public static double wavg(byte[] values, long[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
public static double weightedAvg(byte[] values, long[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
public static double wavg(byte[] values, int[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
public static double weightedAvg(byte[] values, int[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
public static double wavg(byte[] values, byte[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
wavg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
public static double weightedAvg(byte[] values, byte[] weights) Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
weightedAvg
Returns the weighted average. Null values are excluded.- Parameters:
values- values.weights- weights- Returns:
- weighted average of non-null values.
-
sort
Returns sorted values from smallest to largest.- Parameters:
values- values.- Returns:
- sorted values.
-
sort
public static byte[] sort(byte[] values) Returns sorted values from smallest to largest.- Parameters:
values- values.- Returns:
- sorted values.
-
sort
Returns sorted values from smallest to largest.- Parameters:
values- values.- Returns:
- sorted values.
-
sortDescending
Returns sorted values from largest to smallest.- Parameters:
values- values.- Returns:
- sorted values.
-
sortDescending
public static byte[] sortDescending(byte[] values) Returns sorted values from largest to smallest.- Parameters:
values- values.- Returns:
- sorted values.
-
sortDescending
Returns sorted values from largest to smallest.- Parameters:
values- values.- Returns:
- sorted values.
-
sequence
public static byte[] sequence(byte start, byte end, byte step) Returns a sequence of values.- Parameters:
start- starting value.end- terminal value.step- step size.- Returns:
- sequence of values from start to end.
-