public final class EngineerMath extends AbstractMath
Modifier and Type | Method and Description |
---|---|
static double |
entropy(double[] v)
Compute the entropy of an array.
|
static double |
entropy(int[] v)
Compute the entropy of an array.
|
static double |
icf(double[] v)
Shannon entropy of an array.
|
static double[] |
resample(double[] data,
int newl)
Set an array to the specified length resampling using linear interpolation.
|
static double[] |
runningAverage(double[] v,
int width)
Return a running average over the data.
|
static double[] |
runningMedian(double[] v,
int width)
Return a running median over the data.
|
public static double[] runningAverage(double[] v, int width)
v
- the data.width
- width of the average.java.lang.IllegalArgumentException
- if v.length < widthjava.lang.IllegalArgumentException
- if width is evenjava.lang.IllegalArgumentException
- if v.length = 0public static double[] runningMedian(double[] v, int width)
v
- the datawidth
- width of the averagejava.lang.IllegalArgumentException
- if v.length < widthjava.lang.IllegalArgumentException
- if width is evenpublic static double icf(double[] v)
public static double entropy(double[] v)
public static double entropy(int[] v)
public static double[] resample(double[] data, int newl)