|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.functions.Function
com.steema.teechart.functions.CurveFitting
public class CurveFitting
Title: CurveFitting class
Description: Base class for fitting function(s)
Copyright (c) 2005-2013-2008 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Field Summary |
---|
Fields inherited from class com.steema.teechart.functions.Function |
---|
canUsePeriod, dPeriod, HideSourceList, noSourceRequired, series, SingleSource, updating |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart, InternalUse |
Constructor Summary | |
---|---|
CurveFitting()
|
|
CurveFitting(IBaseChart c)
|
Method Summary | |
---|---|
void |
addPoints(java.util.Vector source)
Gets all points from Source series, performs a function operation and stores results in ParentSeries. |
double |
coefficient(int index)
Returns calculated fitted coefficient. |
double |
getCurveYValue(Series s,
double x)
Evaluate function using calculated coefficients. |
java.lang.String |
getDescription()
Gets descriptive text. |
int |
getFactor()
Multiplying factor. |
int |
getFirstCalcPoint()
First point to be used in fitting. |
int |
getFirstPoint()
First point to be used in evaluating. |
int |
getLastCalcPoint()
Last point to be used in fitting. |
int |
getLastPoint()
Last point to be used in evaluating. |
int |
getPolyDegree()
Defines fitted polynomial degree. |
protected java.lang.Object |
readResolve()
|
void |
setFactor(int value)
Multiplying factor. |
void |
setFirstCalcPoint(int value)
First point to be used in fitting. |
void |
setFirstPoint(int value)
First point to be used in evaluating. |
void |
setLastCalcPoint(int value)
Last point to be used in fitting. |
void |
setLastPoint(int value)
Last point to be used in evaluating. |
void |
setPolyDegree(int value)
Defines fitted polynomial degree. |
Methods inherited from class com.steema.teechart.functions.Function |
---|
addFunctionXY, calculate, calculateAllPoints, calculateByPeriod, calculateMany, calculatePeriod, clear, dispose, doCalculation, getPeriod, getPeriodAlign, getPeriodStyle, getSeries, newInstance, recalculate, setPeriod, setPeriodAlign, setPeriodStyle, setSeries, valueList |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurveFitting()
public CurveFitting(IBaseChart c)
Method Detail |
---|
protected java.lang.Object readResolve()
readResolve
in class Function
public int getPolyDegree()
public void setPolyDegree(int value)
value
- intpublic int getFactor()
public void setFactor(int value)
value
- intpublic int getFirstCalcPoint()
public void setFirstCalcPoint(int value)
value
- intpublic int getLastCalcPoint()
public void setLastCalcPoint(int value)
value
- intpublic int getFirstPoint()
public void setFirstPoint(int value)
value
- intpublic int getLastPoint()
public void setLastPoint(int value)
value
- intpublic double coefficient(int index)
index
- int
public double getCurveYValue(Series s, double x)
s
- Seriesx
- double value to be evaluated
public void addPoints(java.util.Vector source)
Function
addPoints
in class Function
source
- ArrayListpublic java.lang.String getDescription()
getDescription
in class Function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |