|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.mdl.SpecificityTemplateTest
public class SpecificityTemplateTest
Template specificity testing
| Constructor Summary | |
|---|---|
SpecificityTemplateTest(java.util.ArrayList<java.lang.String> warpNames,
Template average)
Constructs the test object |
|
| Method Summary | |
|---|---|
double |
calculateError(Template tem1,
Template tem2)
Calculates the error between two Templates |
double[] |
calculateSpecificity(int comps,
int trials)
Calculates the specitivity of the model |
double |
findMinError(Template testTem)
Find the minimum error from the set of Templates |
static void |
main(java.lang.String[] args)
Main method runs the tests |
Template |
makeRandom(int comps)
Makes a random Template from the model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpecificityTemplateTest(java.util.ArrayList<java.lang.String> warpNames,
Template average)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
warpNames - the list of warp file namesaverage - the average Template
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException| Method Detail |
|---|
public Template makeRandom(int comps)
makeRandom in interface SpecificityTest<Template>comps - the number of model components to use
public double calculateError(Template tem1,
Template tem2)
calculateError in interface SpecificityTest<Template>tem1 - first templatetem2 - second template
public double findMinError(Template testTem)
findMinError in interface SpecificityTest<Template>testTem - the test template
public double[] calculateSpecificity(int comps,
int trials)
calculateSpecificity in interface SpecificityTest<Template>comps - the number of model components to usetrials - the number of trials to performs
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
args - args[0] = number of warps (all named "warp"+i+".warp"), args[1] is the average template, args [2] = file to write results to
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||