|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.nlp.uned.utilities.MathHelper
public class MathHelper
The Class MathHelper.
Constructor Summary | |
---|---|
MathHelper()
|
Method Summary | |
---|---|
static double |
euclideanDistance(int[] vector_1,
int[] vector_2,
boolean normalized)
Al normalizar convertimos la distancia euclidea en una medida de similitud. |
static void |
printMatrix(java.lang.String[] columns,
java.lang.String[] rows,
java.lang.Object[][] matrix)
Prints the matrix. |
static double |
round(double number,
int decimals)
Round. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MathHelper()
Method Detail |
---|
public static double round(double number, int decimals)
decimals
- the decimalsnumber
- the number
public static double euclideanDistance(int[] vector_1, int[] vector_2, boolean normalized)
vector_1
- the vector_1vector_2
- the vector_2normalized
- the normalized
public static void printMatrix(java.lang.String[] columns, java.lang.String[] rows, java.lang.Object[][] matrix)
matrix
- the matrixrows
- the rowscolumns
- the columns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |