|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttest.TestBase
test.TestExSimNum
Class TestExSimNum runs Test 4b on pre-seeding on external similiarity matrix on simple graph (each parameter setting is tested with 100 runs). Fixed: maxLoop = 3000, L = 0.01 Graph type = simple asymmetric graph (unlabeled, undirected, unweighted) Concept number = 20 Relation fullness = 50% Seed Mode = rand Varying: Seed Num = 0, 1, 2, 3, 4 Noise level = 0, 2%, 4%, 6%, 8% Note: All seeded concept pairs are correct mappings; Seeding mode refers to whether to choose none concept, a random concept, a concept with maximum or minimum degree to pre-map. Seeding number refers to how many pairs of concepts are being seeded.
| 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) int |
snum
|
(package private) ConceptSystem |
systemN
|
(package private) ConceptSystem |
systemO
|
| Constructor Summary | |
TestExSimNum()
|
|
| 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 |
mainCall(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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
int snum
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 TestExSimNum()
| Method Detail |
void seedExSim(Absurdist absurdist)
seedExSim in class TestBasepublic static void main(java.lang.String[] args)
void mainCall(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.Exception
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 | |||||||||