Class NSSMEdgeResult

java.lang.Object
  |
  +--SimMeasureResult
        |
        +--NSSMEdgeResult

public class NSSMEdgeResult
extends SimMeasureResult

This is the result of applying an NSSMEdge measure to a non-sequential similarity statement.


Field Summary
 int[] bestMatch
          bestMatch is set to null (in the similarity measure) if noEdgeSubgraphs() is true.
 int doubleStringLength
          For user interface purposes.
 double[][] meanSimilarities
          The mean similarities matrix.
 int multipleMatchingsInBest
           
 
Fields inherited from class SimMeasureResult
measure, measureNoOverlap, origin, viewDifferences
 
Constructor Summary
NSSMEdgeResult(double meas, NSSMEdge or, double[][] meansims, int[] bmatch, int doublematchings, java.util.Vector allMatch)
           
NSSMEdgeResult(NSSMEdge or)
           
 
Method Summary
 void completeMatchData(NonSeqSimStmt nsss)
          Computes the number of multiple matchings and the vector allMatches.
 double[][] getMeanEdgeSimMatrix()
          Computes the mean similarities matrix.
 boolean mirrored()
          Tells if the two subgraphs are swapped for comparison purposes.
 int noEdgeSubgraphs()
          Returns true if one subgraph has no edges of the desired type.
 java.lang.String toString()
           
 java.lang.String toStringWithViewDifferences()
          Overrides this method because we don't want to see all the viewdiffs.
 
Methods inherited from class SimMeasureResult
toGnuplotHeader, toGnuplotString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

meanSimilarities

public double[][] meanSimilarities
The mean similarities matrix.


bestMatch

public int[] bestMatch
bestMatch is set to null (in the similarity measure) if noEdgeSubgraphs() is true. Otherwise it is an array of length= the longest side of the similarity matrix


multipleMatchingsInBest

public int multipleMatchingsInBest

doubleStringLength

public final int doubleStringLength
For user interface purposes.

See Also:
Constant Field Values
Constructor Detail

NSSMEdgeResult

public NSSMEdgeResult(double meas,
                      NSSMEdge or,
                      double[][] meansims,
                      int[] bmatch,
                      int doublematchings,
                      java.util.Vector allMatch)

NSSMEdgeResult

public NSSMEdgeResult(NSSMEdge or)
Method Detail

noEdgeSubgraphs

public int noEdgeSubgraphs()
Returns true if one subgraph has no edges of the desired type. It may happen that one subgraph has no edges of the desired type. The desired type is decided by which 'getXXXSimMatrix()' method in NSVCEdge is called from the similarity measure. In that case some dimensions in the similarity matrix will be zero. We ask about this instead of the number of edges, because otherwise we have to remember which desired edge type that was called for in the 'getXXXSimMatrix()' method mentioned above.


mirrored

public boolean mirrored()
Tells if the two subgraphs are swapped for comparison purposes. If subgraph2 has more edges than subgraph1, then it is not the first index (that of subgraph1) in meanSimilarities that runs longest. But we always try to match all edges of that subgraph which has most edges, to some edge in the smaller (in number of edges) subgraph, so the matching should be "mirrored", starting from edges varying in index 2 rather than index 1 of the similarity matrix meanSimilarities.


toStringWithViewDifferences

public java.lang.String toStringWithViewDifferences()
Overrides this method because we don't want to see all the viewdiffs.

Overrides:
toStringWithViewDifferences in class SimMeasureResult

getMeanEdgeSimMatrix

public double[][] getMeanEdgeSimMatrix()
Computes the mean similarities matrix.


completeMatchData

public void completeMatchData(NonSeqSimStmt nsss)
Computes the number of multiple matchings and the vector allMatches.


toString

public java.lang.String toString()
Overrides:
toString in class SimMeasureResult