|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.base.math.StraightLineFitter
public final class StraightLineFitter
Class to fit straight line to a set of 2D data points. The methods implemented in Press, Teukolsky, Vetterling, Flannery, Numerical Recipies, second edition are used.
| Constructor Summary | |
|---|---|
StraightLineFitter(ArrayList<Double> xValues,
ArrayList<Double> yValues)
Constructor : y-variance is set to 1 for all data points |
|
StraightLineFitter(ArrayList<Double> xValues,
ArrayList<Double> yValues,
ArrayList<Double> yVariance)
Constructor |
|
| Method Summary | |
|---|---|
double |
getFitOffset()
Gets offset of fitted straight line |
double |
getFitSlope()
Gets slope of fitted straight line |
ArrayList<Double> |
getFittedValues()
Returns the values of the fitted straight line at xValues |
ArrayList<Double> |
getXValues()
Get the x-values of the data points |
ArrayList<Double> |
getYValues()
Get the y-values of the data points |
ArrayList<Double> |
getYVariance()
Get y-variance of data points |
void |
setXYValues(ArrayList<Double> xValues,
ArrayList<Double> yValues)
Sets x-,y-values. |
void |
setXYValues(ArrayList<Double> xValues,
ArrayList<Double> yValues,
ArrayList<Double> yVariance)
Sets x-,y- and variance values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StraightLineFitter(ArrayList<Double> xValues,
ArrayList<Double> yValues)
throws IllegalArgumentException
xValues - : x-values of the data pointsyValues - : y-values of the data points
IllegalArgumentException
public StraightLineFitter(ArrayList<Double> xValues,
ArrayList<Double> yValues,
ArrayList<Double> yVariance)
throws IllegalArgumentException
xValues - : x-values of the data pointsyValues - : y-values of the data pointsyVariance - : variance associated with y-values of data points
IllegalArgumentException| Method Detail |
|---|
public void setXYValues(ArrayList<Double> xValues,
ArrayList<Double> yValues)
throws IllegalArgumentException
xValues - : x-values of the data pointsyValues - : y-values of the data points
IllegalArgumentException
public void setXYValues(ArrayList<Double> xValues,
ArrayList<Double> yValues,
ArrayList<Double> yVariance)
throws IllegalArgumentException
xValues - : x-values of the data pointsyValues - : y-values of the data pointsyVariance - : variance associated with y-values of data points
IllegalArgumentExceptionpublic ArrayList<Double> getXValues()
public ArrayList<Double> getYValues()
public ArrayList<Double> getYVariance()
public double getFitOffset()
public double getFitSlope()
public ArrayList<Double> getFittedValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||