edu.mit.sketch.geom
Class Approximation

java.lang.Object
  |
  +--edu.mit.sketch.geom.Approximation
All Implemented Interfaces:
Comparator, Serializable

public class Approximation
extends Object
implements Serializable, Comparator

This class represents a geometric object along with *SOME* error metric relating to the LSQ error.

See Also:
Serialized Form

Field Summary
 double error
          The error
 
Constructor Summary
Approximation(GeometricObject geometric_object, double error)
          The constructor.
 
Method Summary
 int compare(Object o1, Object o2)
          Implement Comparator
 boolean equals(Object o1, Object o2)
          Implement Comparator
 String toString()
          Implement toString()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

error

public double error
The error
Constructor Detail

Approximation

public Approximation(GeometricObject geometric_object,
                     double error)
The constructor.
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Implement Comparator
Specified by:
compare in interface Comparator

equals

public boolean equals(Object o1,
                      Object o2)
Implement Comparator

toString

public String toString()
Implement toString()
Overrides:
toString in class Object