|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.util.BDVectorTools
public class BDVectorTools
Static methods operating on the DoubleVector class.
| Constructor Summary | |
|---|---|
BDVectorTools()
|
|
| Method Summary | |
|---|---|
static BigDecimalVector |
add(BigDecimalVector v1,
BigDecimalVector v2)
Performs an addition of two double vectors. |
static boolean |
hasValidValues(BigDecimalVector vector)
Tests if all values in the vector are valid. |
static void |
init(BigDecimalVector vector,
BigDecimal initValue)
Initialises the vector with a given value. |
static BigDecimalVector |
mean(Collection<BigDecimalVector> vectors)
Computes the mean vector of a set of vectors. |
static BigDecimalVector |
normalize(BigDecimalVector vector)
Normalises a vector (LP norm is used). |
static BigDecimal |
normLP(BigDecimalVector vector)
Computes the LP norm of the vector. |
static BigDecimalVector |
scalarDiv(BigDecimalVector vector,
int divisor)
Computes the scalar division of a double vector. |
static BigDecimalVector |
sum(Collection<BigDecimalVector> vectors)
Computes the sum of a collection of double vectors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BDVectorTools()
| Method Detail |
|---|
public static BigDecimalVector add(BigDecimalVector v1,
BigDecimalVector v2)
v1 - the first vector.v2 - the second vector.
public static void init(BigDecimalVector vector,
BigDecimal initValue)
vector - the vector to be initialised.initValue - the initialisation value.
public static BigDecimalVector scalarDiv(BigDecimalVector vector,
int divisor)
vector - the vector.divisor - the divisor.
public static BigDecimalVector sum(Collection<BigDecimalVector> vectors)
vectors - a collection of double vectors.
public static BigDecimalVector mean(Collection<BigDecimalVector> vectors)
vectors - the collection of double vectors whose mean vector has to be computed.
public static BigDecimal normLP(BigDecimalVector vector)
vector - the vector to compute the LP norm.
public static BigDecimalVector normalize(BigDecimalVector vector)
vector - the vector to be normalised.
public static boolean hasValidValues(BigDecimalVector vector)
vector - the vector to test.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||