|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FitnessLandscape
This class is a program used to give an impression of the fitness landscape for sequential similarity measures. It reads a midi or MuseData file into a graph, constructs a number of sequential subgraphs, and slides them to the right, registering after each slide the fitness of a similarity statement with the sliding sequential subgraph in question as one half and another fixed, randomly chosen sequential subgraph as the other half. The registered fitness values are written to an output file in a format ready to use in GnuPlot.
Field Summary | |
static SeqSimMeasure |
simMeasure
The sequential similarity measure used to evaluate the sequential similarity statements in writeNeighbourFitnessToFile(). |
Constructor Summary | |
FitnessLandscape()
|
Method Summary | |
static double |
euclideanDistance(int[] v1,
int[] v2)
Returns the Euclidean distance between two integer arrays. |
static void |
main(java.lang.String[] args)
Effects the main call to writeNeighbourFitnessToFile(). |
static int |
numOfFalse(boolean[] done)
Counts and returns the number of false entries in the input boolean array. |
static void |
writeAllDistancesToFile(java.util.Vector subs,
java.lang.String outfilename,
int size)
Deprecated. This method isn't used any more. Use writeNeighbourFitnessToFile instead. |
static void |
writeNeighbourFitnessToFile(MotherGraph piece,
java.lang.String outfilename,
int size)
Creates sequential subgraphs of size "size", slides them through the graph representing the piece and writes the registered fitness values to an output file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static SeqSimMeasure simMeasure
Constructor Detail |
public FitnessLandscape()
Method Detail |
public static void main(java.lang.String[] args)
public static void writeNeighbourFitnessToFile(MotherGraph piece, java.lang.String outfilename, int size)
public static int numOfFalse(boolean[] done)
public static void writeAllDistancesToFile(java.util.Vector subs, java.lang.String outfilename, int size)
public static double euclideanDistance(int[] v1, int[] v2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |