treemap
Class LayoutDifference
java.lang.Object
treemap.LayoutDifference
public class LayoutDifference
- extends java.lang.Object
Object that can measure to the amount of
structural change between two layouts.
The layouts must have identical tree structures.
To measure a difference, first do a "recordLayout" on a MapModel,
then call "averageDistance" on the changed model.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutDifference
public LayoutDifference()
recordLayout
public void recordLayout(MapModel model)
recordLayout
public void recordLayout(Mappable[] m)
averageDistance
public double averageDistance(MapModel model)
averageDistance
public double averageDistance(Mappable[] m)