hhreco.fragmentation
Class LineBasis
java.lang.Object
hhreco.fragmentation.Basis
hhreco.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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
getLine
public java.awt.geom.Line2D getLine()
- Return the line segment used to approximate the given set of
points.