|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutilities.Normalization
public class Normalization
This class contains utility methods used for vector normalization.
Constructor Summary | |
---|---|
Normalization()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
static double[] |
normalizeL1(double[] vector)
This method applies L1 normalization on a given array of doubles. |
static double[] |
normalizeL2(double[] vector)
This method applies L2 normalization on a given array of doubles. |
static double[] |
normalizePower(double[] vector,
double aParameter)
This method applies power normalization on a given array of doubles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Normalization()
Method Detail |
---|
public static double[] normalizeL2(double[] vector)
vector
- the original vector
public static double[] normalizeL1(double[] vector)
vector
- the original vector
public static double[] normalizePower(double[] vector, double aParameter)
vector
- the original vectoraParameter
- the a parameter used (usually 0.5)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |