Class QuadricGroup

java.lang.Object
  |
  +--QuadricGroup

public class QuadricGroup
extends java.lang.Object

This class is responsible for storing groups of PCA objects (QuadricFits) and determining if other QuadicFits are good candidates to add to the group based on their theta and width.


Constructor Summary
protected QuadricGroup()
          dont allow creation of id-less group
  QuadricGroup(int id)
          create a new Quadric Group
 
Method Summary
 void add(QuadricFit quad_fit)
          Add the specifed QuadricFit to the group
 void addGroup(QuadricGroup qg)
          Add all of the quadrics in the specified QuadricGroup to this group
 boolean belongs(QuadricFit quad_fit)
          return true if the specifed QuadricFit belongs in this group, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadricGroup

public QuadricGroup(int id)
create a new Quadric Group


QuadricGroup

protected QuadricGroup()
dont allow creation of id-less group

Method Detail

belongs

public boolean belongs(QuadricFit quad_fit)
return true if the specifed QuadricFit belongs in this group, false otherwise. In order to belong, quad_fit must past 4 tests: 1. Its theta value must be within a certain factor times the std. deviation of the mean group theta. 2. if added to the group, it must not bring the theta variance over a certain limit. This prevents slowly changing curves from being treated as single lines. 3. Its width value must be within a certain factor times the std. deviation of the mean group width. 2. if added to the group, it must not bring the width variance over a certain limit.


add

public void add(QuadricFit quad_fit)
Add the specifed QuadricFit to the group


addGroup

public void addGroup(QuadricGroup qg)
Add all of the quadrics in the specified QuadricGroup to this group