public class AvaMath extends Object
Constructor and Description |
---|
AvaMath() |
Modifier and Type | Method and Description |
---|---|
static int |
max(List<Integer> vector)
Returns the maximum of an integer list
|
static double |
mean(List<Integer> vector)
Returns the mean of an integer list
|
static int |
min(List<Integer> vector)
Returns the minimum of an integer list
|
static double[][] |
normalizeColumns(double[][] dataset)
Normalizes the columns of a matrix
|
static double |
std(List<Integer> vector)
Returns the standard deviation of an integer list
|
static double |
sum(Collection<Double> values)
Returns the sum of a double collection
|
static double |
sum(double[] vector)
Returns the sum of a double array
|
static int |
sum(List<Integer> vector)
Returns the sum of an integer list
|
static int |
sumCollection(Collection<Integer> vector)
Returns the sum of an integer collection
|
public static int min(List<Integer> vector)
vector
- the list of integerspublic static int max(List<Integer> vector)
vector
- the list of integerspublic static int sum(List<Integer> vector)
vector
- the list of integerspublic static int sumCollection(Collection<Integer> vector)
vector
- the collection of integerspublic static double sum(Collection<Double> values)
vector
- the collection of doublespublic static double sum(double[] vector)
vector
- the array of doublespublic static double mean(List<Integer> vector)
vector
- the list of integerspublic static double std(List<Integer> vector)
vector
- the list of integerspublic static double[][] normalizeColumns(double[][] dataset)
vector
- the matrix whose columns are to be normalizedCopyright © 2005–2020. All rights reserved.