public final class StudyPolynomialRegression extends StudyFormula
This study determines the Polynomial Regression pattern of the data and draws a curve.
Constructor and Description |
---|
StudyPolynomialRegression()
Constructs a newly allocated StudyPolynomialRegression object
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(int seriesIndex,
double x)
Returns the value of the polynomial at a certain X value
|
double[][] |
getCoefficients()
Returns the coefficients of the polynomial equation for each series.
|
int |
getDegree()
Gets or sets the degree of the polynomial.
|
java.lang.String |
getValue(int series)
Description goes here
|
void |
resetDegree()
Set the property Degree to its default value.
|
void |
setDegree(int value)
Gets or sets the degree of the polynomial.
|
getCurveMax, getCurveMin, getFormula, getSteps, getXMax, getXMin, isFillArea, isSpline, resetFillArea, resetSpline, resetSteps, setFillArea, setFormula, setSpline, setSteps
getColor, getLine, isBehind, resetBehind, setBehind
getAxis, isInteractive, isVisible, resetInteractive, resetVisible, setAxis, setInteractive, setVisible
createAnalysisMultiStudy, createAnalysisStudy, createDistributionFormulaStudy, createTestMultiStudy, createTestStudy, getDecimals, getID, getText, getValue, isBold, isIndented, resetBold, resetDecimals, resetIndented, resetText, setBold, setDecimals, setIndented, setText, setValue
public StudyPolynomialRegression()
public double[][] getCoefficients()
public int getDegree()
resetDegree
public void setDegree(int value)
value
- resetDegree
public double evaluate(int seriesIndex, double x)
If an X value is outside the visible range of the Chart area, then a value can still be calculated and will not cause an exception.
Retrieve the value of the Polynomial Regression line at 5 for the first series.
seriesIndex
- The series to analyze.x
- The X Value.public java.lang.String getValue(int series)
public void resetDegree()
setDegree
2014 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.