|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.math.MathFunctions
public class MathFunctions
This class provides mathematical functions not already provided by java.lang.Math:
| Field Summary | |
|---|---|
protected static double[] |
DIVIDER_COEFFICIENTS_0
|
protected static double[] |
DIVIDER_COEFFICIENTS_1
|
protected static double[] |
DIVIDER_COEFFICIENTS_3
|
protected static double[] |
DIVISOR_COEFFICIENTS_0
coefficients for polynomials used in normalInverse() to estimate normal distribution; |
protected static double[] |
DIVISOR_COEFFICIENTS_1
|
protected static double[] |
DIVISOR_COEFFICIENTS_3
|
protected static double |
log2
|
| Constructor Summary | |
|---|---|
MathFunctions()
|
|
| Method Summary | |
|---|---|
static double |
correlation(double[] x1,
double[] x2)
|
static double |
correlation(ExampleSet exampleSet,
Attribute firstAttribute,
Attribute secondAttribute,
boolean squared)
This method calculates the correlation between two (numerical) attributes of an example set. |
static long |
getGCD(java.util.Collection<java.lang.Long> collection)
Returns the greatest common divisor (GCD) of the given pair of values. |
static long |
getGCD(long a,
long b)
Returns the greatest common divisor (GCD) of the given pair of values. |
static double |
ld(double value)
This method returns the logarithmus dualis from value |
static double |
normalInverse(double probability)
Returns the value x for which the area under the normal probability density function (integrated from minus infinity to this value x) is equal to the given probability. |
static double |
robustMax(double m1,
double m2)
|
static double |
robustMin(double m1,
double m2)
|
static double |
solvePolynomial(double x,
double[] coefficients)
Solves a given polynomial at x. |
static double |
tanh(double x)
returns tangens hyperbolicus of x, i.e. |
static double |
variance(double[] v,
double a)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final double log2
protected static final double[] DIVISOR_COEFFICIENTS_0
protected static final double[] DIVIDER_COEFFICIENTS_0
protected static final double[] DIVISOR_COEFFICIENTS_1
protected static final double[] DIVIDER_COEFFICIENTS_1
protected static final double[] DIVISOR_COEFFICIENTS_3
protected static final double[] DIVIDER_COEFFICIENTS_3
| Constructor Detail |
|---|
public MathFunctions()
| Method Detail |
|---|
public static double tanh(double x)
public static double normalInverse(double probability)
probability - the area under the normal pdf
public static double solvePolynomial(double x,
double[] coefficients)
public static double variance(double[] v,
double a)
v - a vector valuesa - a threeshold, only values greater equal this value are used in
the calculation
public static double correlation(ExampleSet exampleSet,
Attribute firstAttribute,
Attribute secondAttribute,
boolean squared)
public static double correlation(double[] x1,
double[] x2)
public static double robustMin(double m1,
double m2)
public static double robustMax(double m1,
double m2)
public static double ld(double value)
value - the value
public static long getGCD(long a,
long b)
public static long getGCD(java.util.Collection<java.lang.Long> collection)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||