|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.AbstractMath JSci.maths.EngineerMath
public final class EngineerMath
This class is dedicated to engineering methods applied to arrays including signal processing. All methods here are safe, that is, they create copies of arrays whenever necessary. This makes for slower methods, but the programmer can always define his own methods optimized for performance.
Method Summary | |
---|---|
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 newLength)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double[] runningAverage(double[] v, int width)
v
- the data.width
- width of the average.
java.lang.IllegalArgumentException
- if v.length < width
java.lang.IllegalArgumentException
- if width is even
java.lang.IllegalArgumentException
- if v.length = 0public static double[] runningMedian(double[] v, int width)
v
- the datawidth
- width of the average
java.lang.IllegalArgumentException
- if v.length < width
java.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 newLength)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |