public class Flt extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Flt.ReduceBy
Public interface for a very fast reduce by.
|
| Constructor and Description |
|---|
Flt() |
| Modifier and Type | Method and Description |
|---|---|
static float[] |
add(float[] array,
float v) |
static float[] |
add(float[] array,
float[] array2) |
static float[] |
array(float... array) |
static float[] |
arrayOfFloat(int size)
Creates an array of bytes
|
static float |
atIndex(float[] array,
int index) |
static void |
atIndex(float[] array,
int index,
float value) |
static double |
bigSum(float[] values)
Sum
Provides overflow protection.
|
static double |
bigSum(float[] values,
int length)
Sum
Provides overflow protection.
|
static double |
bigSum(float[] values,
int start,
int length)
Big Sum
|
static float[] |
compact(float[] array) |
static float[] |
copy(float[] array) |
static float[] |
endOfSlice(float[] array,
int endIndex) |
static boolean |
equals(float[] expected,
float[] got)
Checks to see if two arrays are equals
|
static boolean |
equals(float expected,
float got)
Compares two values
|
static boolean |
equals(int start,
int end,
float[] expected,
float[] got)
Checks to see if two arrays are equals
|
static boolean |
equalsOrDie(float[] expected,
float[] got)
Checks to see if two arrays are equals
|
static boolean |
equalsOrDie(float expected,
float got)
Checks to see if two values are the same
|
static float[] |
grow(float[] array) |
static float[] |
grow(float[] array,
int size) |
static int |
hashCode(float[] array) |
static int |
hashCode(int start,
int end,
float[] array) |
static float |
idx(float[] array,
int index) |
static void |
idx(float[] array,
int index,
float value) |
static boolean |
in(float value,
float[] array) |
static float[] |
insert(float[] array,
int idx,
float v) |
static float[] |
insert(float[] array,
int fromIndex,
float[] values) |
static int |
len(float[] array) |
static int |
lengthOf(float[] array) |
static float |
max(float[] values)
max
|
static float |
max(float[] values,
int length)
max
|
static float |
max(float[] values,
int start,
int length)
Max
|
static float |
mean(float[] values)
Average
|
static float |
mean(float[] values,
int length)
Average
|
static float |
mean(float[] values,
int start,
int length)
Average
|
static float |
median(float[] values)
Calculate Median
|
static float |
median(float[] values,
int length)
Calculate Median
|
static float |
median(float[] values,
int start,
int length)
Calculate Median
|
static float |
min(float[] values)
Min
|
static float |
min(float[] values,
int length)
Min
|
static float |
min(float[] values,
int start,
int length)
Min
|
static double |
reduceBy(float[] array,
Flt.ReduceBy reduceBy)
A very fast reduce by.
|
static double |
reduceBy(float[] array,
int length,
Flt.ReduceBy reduceBy) |
static double |
reduceBy(float[] array,
int start,
int length,
Flt.ReduceBy reduceBy) |
static double |
reduceBy(float[] array,
int start,
int length,
Object object)
Reduce By
|
static double |
reduceBy(float[] array,
int length,
Object object)
Reduce By
|
static double |
reduceBy(float[] array,
int length,
Object function,
String functionName)
Reduce By
|
static <T> double |
reduceBy(float[] array,
T object)
Reduce by functional support for int arrays.
|
static <T> double |
reduceBy(float[] array,
T object,
String methodName)
Reduce by functional support for int arrays.
|
static float[] |
shrink(float[] array,
int size) |
static float[] |
slc(float[] array,
int startIndex) |
static float[] |
slc(float[] array,
int startIndex,
int endIndex) |
static float[] |
slcEnd(float[] array,
int endIndex) |
static float[] |
sliceOf(float[] array,
int startIndex) |
static float[] |
sliceOf(float[] array,
int startIndex,
int endIndex) |
static float |
standardDeviation(float[] values)
Calculate standard deviation.
|
static float |
standardDeviation(float[] values,
int length)
Calculate standard deviation.
|
static float |
standardDeviation(float[] values,
int start,
int length)
Calculate standard deviation.
|
static double |
sum(float[] values)
Sum
Provides overflow protection.
|
static float |
sum(float[] values,
int length)
Sum
Provides overflow protection.
|
static float |
sum(float[] values,
int start,
int length)
Sum
Provides overflow protection.
|
static float |
variance(float[] values)
Calculate Variance.
|
static float |
variance(float[] values,
int length)
Calculate Variance.
|
static float |
variance(float[] values,
int start,
int length)
Calculate Variance.
|
static double |
varianceDouble(float[] values,
int start,
int length)
Calculate Variance.
|
public static float[] grow(float[] array,
int size)
public static float[] grow(float[] array)
public static float[] shrink(float[] array,
int size)
public static float[] compact(float[] array)
public static float[] arrayOfFloat(int size)
size - size of the array you want to makepublic static float[] array(float... array)
array - public static int lengthOf(float[] array)
public static int len(float[] array)
public static float atIndex(float[] array,
int index)
public static float idx(float[] array,
int index)
public static void atIndex(float[] array,
int index,
float value)
public static void idx(float[] array,
int index,
float value)
public static float[] sliceOf(float[] array,
int startIndex,
int endIndex)
public static float[] slc(float[] array,
int startIndex,
int endIndex)
public static float[] sliceOf(float[] array,
int startIndex)
public static float[] slc(float[] array,
int startIndex)
public static float[] endOfSlice(float[] array,
int endIndex)
public static float[] slcEnd(float[] array,
int endIndex)
public static boolean in(float value,
float[] array)
public static float[] copy(float[] array)
public static float[] add(float[] array,
float v)
public static float[] add(float[] array,
float[] array2)
public static float[] insert(float[] array,
int idx,
float v)
public static float[] insert(float[] array,
int fromIndex,
float[] values)
public static boolean equalsOrDie(float[] expected,
float[] got)
expected - expected arraygot - got arraypublic static boolean equals(float[] expected,
float[] got)
expected - expected arraygot - got arraypublic static double reduceBy(float[] array,
Flt.ReduceBy reduceBy)
array - array of items to reduce byreduceBy - reduceBy interfacepublic static double reduceBy(float[] array,
int start,
int length,
Flt.ReduceBy reduceBy)
array - array of items to reduce bystart - where to start in the arraylength - where to end in the arrayreduceBy - the function to do the reduce bypublic static double reduceBy(float[] array,
int length,
Flt.ReduceBy reduceBy)
array - array of items to reduce bylength - where to end in the arrayreduceBy - the function to do the reduce bypublic static <T> double reduceBy(float[] array,
T object)
T - the type of objectarray - array of items to reduce byobject - object that contains the reduce by functionpublic static <T> double reduceBy(float[] array,
T object,
String methodName)
T - the type of objectarray - array of items to reduce byobject - object that contains the reduce by functionpublic static double reduceBy(float[] array,
int length,
Object object)
array - array of items to reduce bylength - where to end in the arrayobject - functionpublic static double reduceBy(float[] array,
int length,
Object function,
String functionName)
array - array of items to reduce bylength - where to end in the arrayfunction - functionfunction - functionNamepublic static double reduceBy(float[] array,
int start,
int length,
Object object)
array - array of items to reduce bylength - where to end in the arrayobject - functionpublic static boolean equalsOrDie(float expected,
float got)
expected - expected valuegot - got valuepublic static boolean equals(float expected,
float got)
expected - expected valuegot - got valuepublic static double sum(float[] values)
values - values in intpublic static float sum(float[] values,
int length)
values - values in intpublic static float sum(float[] values,
int start,
int length)
values - values in intpublic static double bigSum(float[] values)
values - values in intpublic static double bigSum(float[] values,
int length)
values - values in intpublic static double bigSum(float[] values,
int start,
int length)
values - values in intpublic static float max(float[] values,
int start,
int length)
values - values in intpublic static float max(float[] values)
values - values in intpublic static float max(float[] values,
int length)
values - values in intpublic static float min(float[] values,
int start,
int length)
values - values in intpublic static float min(float[] values)
values - values in intpublic static float min(float[] values,
int length)
values - values in intpublic static float mean(float[] values,
int start,
int length)
values - values in intpublic static float mean(float[] values,
int length)
values - values in intpublic static float mean(float[] values)
values - values in intpublic static float variance(float[] values,
int start,
int length)
values - valuesstart - startlength - lengthpublic static double varianceDouble(float[] values,
int start,
int length)
values - valuesstart - startlength - lengthpublic static float variance(float[] values,
int length)
values - valueslength - lengthpublic static float variance(float[] values)
values - valuespublic static float standardDeviation(float[] values,
int start,
int length)
values - valuesstart - startlength - lengthpublic static float standardDeviation(float[] values,
int length)
values - valueslength - lengthpublic static float standardDeviation(float[] values)
values - valuespublic static float median(float[] values,
int start,
int length)
start - startvalues - valueslength - lengthpublic static float median(float[] values,
int length)
values - valueslength - lengthpublic static float median(float[] values)
values - valuespublic static boolean equals(int start,
int end,
float[] expected,
float[] got)
expected - expected arraygot - got arraypublic static int hashCode(float[] array)
public static int hashCode(int start,
int end,
float[] array)
Copyright © 2016. All Rights Reserved.