hhreco.fragmentation
Class LineBasis

java.lang.Object
  extended byhhreco.fragmentation.Basis
      extended byhhreco.fragmentation.LineBasis

public class LineBasis
extends Basis

A LineBasis is used to represent a set of points that are highly colinear. The line is denoted with (a,b,c) parameters as in ax+by+c=0.


Field Summary
 
Fields inherited from class hhreco.fragmentation.Basis
TYPE_ELLIPSE, TYPE_LINE
 
Constructor Summary
LineBasis(double[] xvals, double[] yvals, int num, double[] params, double fitError, java.awt.geom.Line2D line)
          Create a line basis and initialize its attributes.
 
Method Summary
 java.awt.geom.Line2D getLine()
          Return the line segment used to approximate the given set of points.
 
Methods inherited from class hhreco.fragmentation.Basis
getFitError, getNumPoints, getParams, getType, getXvals, getYvals, setFitError, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineBasis

public LineBasis(double[] xvals,
                 double[] yvals,
                 int num,
                 double[] params,
                 double fitError,
                 java.awt.geom.Line2D line)
Create a line basis and initialize its attributes. "line" is the best approximated line fit to the set of points (xvals, yvals) using total regression.

Method Detail

getLine

public java.awt.geom.Line2D getLine()
Return the line segment used to approximate the given set of points.