|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.math.VectorMath
public class VectorMath
This class provides basic operations on vectors like subtraction, multiply and division.
| Constructor Summary | |
|---|---|
VectorMath()
|
|
| Method Summary | |
|---|---|
static double |
getMedian(double[] residuals)
This method returns the median value of the given double array. |
static int |
getPolynomialExpansionSize(int numberOfComponents,
int degree)
This method returns the number of dimensions, a vector will have after a polynomial expansion. |
static double[][] |
matrixDivision(double[][] x,
double y)
|
static double[] |
polynomialExpansion(double[] x,
int degree)
This method expands the given vector with the polynomial bases of the given degree. |
static double[] |
vectorAddition(double[] x,
double[] y)
|
static double[] |
vectorDivision(double[] x,
double y)
|
static double[] |
vectorMultiplication(double[] x,
double y)
|
static double |
vectorMultiplication(double[] vec1,
double[] vec2)
|
static double[] |
vectorSubtraction(double[] x,
double[] y)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VectorMath()
| Method Detail |
|---|
public static final double[] vectorSubtraction(double[] x,
double[] y)
public static final double[] vectorAddition(double[] x,
double[] y)
public static final double vectorMultiplication(double[] vec1,
double[] vec2)
public static final double[] vectorMultiplication(double[] x,
double y)
public static final double[] vectorDivision(double[] x,
double y)
public static final double[][] matrixDivision(double[][] x,
double y)
public static final double[] polynomialExpansion(double[] x,
int degree)
public static final int getPolynomialExpansionSize(int numberOfComponents,
int degree)
public static final double getMedian(double[] residuals)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||