|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.LinearInterpolation
public class LinearInterpolation
An util class for linear interpolation of an ArrayList of Point
Field Summary | |
---|---|
private java.lang.Double |
m
The angular coefficient |
private java.util.ArrayList<Point> |
points
The list of Points |
private java.lang.Double |
q
The y-axis intercept |
Constructor Summary | |
---|---|
LinearInterpolation(java.util.ArrayList<Point> points)
The constructor. |
Method Summary | |
---|---|
java.lang.Double |
getM()
|
java.util.ArrayList<Point> |
getPoints()
|
java.lang.Double |
getQ()
|
void |
interpole()
Interpoles the ArrayList of Point, using the interpolation formula minimizing the sum of the squared distances from points to rect line |
void |
setM(java.lang.Double m)
|
void |
setPoints(java.util.ArrayList<Point> points)
|
void |
setQ(java.lang.Double q)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<Point> points
private java.lang.Double m
private java.lang.Double q
Constructor Detail |
---|
public LinearInterpolation(java.util.ArrayList<Point> points)
points
- the ArrayList of Point to interpolateMethod Detail |
---|
public void interpole()
public java.lang.Double getM()
public void setM(java.lang.Double m)
m
- the the angular coefficient m to setpublic java.lang.Double getQ()
public void setQ(java.lang.Double q)
q
- the y-intersection q to setpublic java.util.ArrayList<Point> getPoints()
public void setPoints(java.util.ArrayList<Point> points)
points
- the points to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |