|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.PGA
public class PGA
Principal Geodesic Analysis for hyperspherical data (Experimental, only part completed)
Constructor Summary | |
---|---|
PGA(java.util.Vector<double[]> data)
Creates a new instance of PGA |
Method Summary | |
---|---|
void |
addToAverage(double[] v,
int n)
Adds a sample to the average |
void |
calculateMean(java.util.Vector<double[]> data)
Estimate the mean |
double[] |
getMean()
Return the current estimate of the mean |
static void |
main(java.lang.String[] args)
The main method is used for testing |
static void |
normalise(double[] vec)
Subtract the mean of the vector's coords and normlise length to 1 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PGA(java.util.Vector<double[]> data)
data
- the data vectors to build the PGA fromMethod Detail |
---|
public void calculateMean(java.util.Vector<double[]> data)
data
- The data to use to estimate the meanpublic double[] getMean()
public void addToAverage(double[] v, int n)
v
- the sample to addn
- the number of samples previously added to the meanpublic static void normalise(double[] vec)
vec
- the vector to normalisepublic static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |