| 
 | Chart FX 7 for Java Server | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.softwarefx.chartfx.server.statistical.Study
com.softwarefx.chartfx.server.statistical.StudyInteractive
com.softwarefx.chartfx.server.statistical.StudyLine
com.softwarefx.chartfx.server.statistical.StudyFormula
com.softwarefx.chartfx.server.statistical.StudyPolynomialRegression
public class StudyPolynomialRegression
Provides access to the StudyPolynomialRegression object.
This study determines the Polynomial Regression pattern of the data and draws a curve.
| Constructor Summary | |
|---|---|
| StudyPolynomialRegression() | |
| Method Summary | |
|---|---|
|  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 the Degree. | 
|  String | getValue(int series)Sets the value for a StudyCustom object. | 
|  void | setDegree(int value)Sets the degree of the polynomial. | 
| Methods inherited from class com.softwarefx.chartfx.server.statistical.StudyFormula | 
|---|
| getCurveMax, getCurveMin, getFormula, getSteps, getXMax, getXMin, isFillArea, isSpline, setFillArea, setFormula, setSpline, setSteps | 
| Methods inherited from class com.softwarefx.chartfx.server.statistical.StudyLine | 
|---|
| getColor, getLine, isBehind, setBehind | 
| Methods inherited from class com.softwarefx.chartfx.server.statistical.StudyInteractive | 
|---|
| getAxis, isInteractive, isVisible, setAxis, setInteractive, setVisible | 
| Methods inherited from class com.softwarefx.chartfx.server.statistical.Study | 
|---|
| createStudy, createStudy, createStudy, createStudy, createStudy, getDecimals, getID, getText, getValue, isBold, isIndented, setBold, setDecimals, setIndented, setText, setValue | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface com.softwarefx.chartfx.server.statistical.IStudy | 
|---|
| getColor, getText, isBold, isIndented, isInteractive, isVisible, setBold, setIndented, setVisible | 
| Constructor Detail | 
|---|
public StudyPolynomialRegression()
| Method Detail | 
|---|
public double evaluate(int seriesIndex,
                       double x)
Returns the value of the polynomial at a certain X value
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.
seriesIndex - The series to analyze.x - The X Value.public double[][] getCoefficients()
Returns the coefficients of the polynomial equation for each series.
The number of coefficients is always 1 more than the Degree.
public int getDegree()
Gets the Degree. For more detail see setDegree(int).
public String getValue(int series)
Sets the value for a StudyCustom object.
The Statistics.getStudies() property of the Statistics class allows you to obtain a selected study which exposes the members of this class.  The Studies property may also be used to obain the entire StudiesCollection.
This property may only be used with StudyCustom objects, as other study objects will have precalcuated values based on the chart data.  In order for a StudyCustom item to have a value, it must be configured.
getValue in interface IStudygetValue in class StudyLineStatistics.getStudies(), 
StudyCustom, 
StudiesCollection, 
Statisticspublic void setDegree(int value)
Sets the degree of the polynomial.
By default, a parabola is generated and applied to the statistical chart.
| 
 | http://www.softwarefx.com | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||