|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttest.TestBase
test.TestNoiseSize
Class TestNoiseSize runs Test 1a on noise tolerance vs graph size (each parameter setting is tested with 100 runs). Fixed: Graph type = simple asymmetric graph (unlabeled, undirected, unweighted) maxLoop = 3000, L = 0.01 Relation fullness = 50% Varying: Concept number = 8, 10, 12, 15, 20 Noise level = 0, 2%, 4%, 6%, 8%
| Field Summary | |
static boolean |
debugAll
If the derived class sets this to true, absurdist.print() will be triggered, printing both systems etc |
static boolean |
debugMode
|
(package private) static java.text.DecimalFormat |
dfa
|
(package private) double |
fullness
|
(package private) int |
n
Local copies of important variables. |
(package private) double |
noise
|
static int |
NRuns
|
(package private) java.io.PrintStream |
out
|
static java.lang.String |
recover
Optional: name of the old results file (from an earlier interrupted run) to recover. |
(package private) ConceptSystem |
systemN
|
(package private) ConceptSystem |
systemO
|
| Constructor Summary | |
TestNoiseSize()
|
|
| Method Summary | |
static void |
debug(java.lang.String s)
|
static void |
debugln(java.lang.String s)
|
static void |
error(java.lang.String s)
|
(package private) ConceptSystem |
getSysN(ConceptSystem systemO)
Creates the noisy system. |
(package private) ConceptSystem |
getSysO()
Creates the base system. |
static void |
main(java.lang.String[] args)
|
(package private) void |
mainLoop(int n,
double fullness,
double noise,
int NRuns,
java.io.PrintStream out)
Create a system with a specified number of nodes and "relation fulness", and its noisy copy with a specified noise level; match them; repeat NRuns times. |
(package private) static void |
printStats(int n,
double fullness,
double noise,
int NRuns,
Absurdist.Results avg,
java.io.PrintStream out)
|
(package private) int |
recoverOldFile(Absurdist.Results avg,
int NRuns,
java.io.PrintStream out)
Reads data saved to a file during an earlier incomplete run, and adds them to the results accumulator |
(package private) void |
seedExSim(Absurdist absurdist)
Fills the external similarity matrix and sets alpha. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean debugMode
public static boolean debugAll
public static int NRuns
public static java.lang.String recover
static java.text.DecimalFormat dfa
int n
double fullness
double noise
ConceptSystem systemO
ConceptSystem systemN
java.io.PrintStream out
| Constructor Detail |
public TestNoiseSize()
| Method Detail |
public static void main(java.lang.String[] args)
public static void debug(java.lang.String s)
public static void debugln(java.lang.String s)
public static void error(java.lang.String s)
ConceptSystem getSysO()
throws java.lang.Exception
java.lang.Exception
ConceptSystem getSysN(ConceptSystem systemO)
throws java.lang.Exception
java.lang.Exceptionvoid seedExSim(Absurdist absurdist)
int recoverOldFile(Absurdist.Results avg,
int NRuns,
java.io.PrintStream out)
throws java.io.IOException
avg - The results accumulator array to add recovered data toout - The new results file
java.io.IOException
void mainLoop(int n,
double fullness,
double noise,
int NRuns,
java.io.PrintStream out)
throws java.lang.Exception
java.lang.Exception
static void printStats(int n,
double fullness,
double noise,
int NRuns,
Absurdist.Results avg,
java.io.PrintStream out)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||