public class Maths extends Object
Constructor and Description |
---|
Maths() |
Modifier and Type | Method and Description |
---|---|
static double |
arrayAverage(double[] array)
Calculates the average of an double array
|
static double |
arrayAverage(int[] array)
Calculates the average of an int array
|
static double |
arrayStandardDeviation(double[] array)
Calculates the standard deviation of an double array
|
static double |
arrayStandardDeviation(int[] array)
Calculate the standard deviation of an int array
|
static double |
dotProduct(double[] a,
double[] b)
Dot product between two vectors
|
static double |
log(double x,
double b)
Returns the log in an specific base
|
static double |
logistic(double x)
Returns the logistic function g(x)
|
public static double arrayAverage(double[] array)
array
- Array of double from which to calculate the meanpublic static double arrayStandardDeviation(double[] array)
array
- Array of double from which to calculate the standard deviationpublic static double arrayAverage(int[] array)
array
- Array of int from which to calculate the meanpublic static double arrayStandardDeviation(int[] array)
array
- Array of int from which to calculate the standard deviationpublic static double dotProduct(double[] a, double[] b)
a
- Vector Ab
- Vector Bpublic static double log(double x, double b)
x
- Valueb
- Basepublic static double logistic(double x)
x
- The given parameter x of the function g(x)Copyright © 2020. All rights reserved.