|
||||||||||
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.BaseTrend
public class BaseTrend
Title: BaseTrend class
Description: Internal use. Base class for different trend functions.
Copyright (c) 2005-2013 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 | |
---|---|
BaseTrend()
|
|
BaseTrend(IBaseChart c)
|
Method Summary | |
---|---|
double |
calculate(Series s,
int firstIndex,
int lastIndex)
Performs function operation on SourceSeries series. |
protected void |
calculateAllPoints(Series source,
ValueList notMandatorySource)
|
double |
calculateMany(java.util.Vector sourceSeriesList,
int valueIndex)
Performs function operation on list of series (SourceSeriesList). |
protected void |
calculatePeriod(Series source,
double tmpX,
int firstIndex,
int lastIndex)
|
com.steema.teechart.functions.BaseTrend.CalcTrend |
calculateTrend(Series s,
int firstIndex,
int lastIndex)
Calculates trend line parameters m and b, where y=m*x+b |
protected double |
coefficient(Series s,
int firstIndex,
int lastIndex)
Calculates trendline first order parameter |
TrendStyle |
getTrendStyle()
Method used for calculating trendline. |
void |
setTrendStyle(TrendStyle value)
Defines different methods for calculating trendline. |
Methods inherited from class com.steema.teechart.functions.Function |
---|
addFunctionXY, addPoints, calculateByPeriod, clear, dispose, doCalculation, getDescription, getPeriod, getPeriodAlign, getPeriodStyle, getSeries, newInstance, readResolve, 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 BaseTrend()
public BaseTrend(IBaseChart c)
Method Detail |
---|
public TrendStyle getTrendStyle()
public void setTrendStyle(TrendStyle value)
value
- TrendStylepublic double calculate(Series s, int firstIndex, int lastIndex)
Function
calculate
in class Function
s
- SeriesfirstIndex
- intlastIndex
- int
public double calculateMany(java.util.Vector sourceSeriesList, int valueIndex)
Function
calculateMany
in class Function
sourceSeriesList
- ArrayListvalueIndex
- int
protected double coefficient(Series s, int firstIndex, int lastIndex)
s
- SeriesfirstIndex
- intlastIndex
- int
protected void calculatePeriod(Series source, double tmpX, int firstIndex, int lastIndex)
calculatePeriod
in class Function
protected void calculateAllPoints(Series source, ValueList notMandatorySource)
calculateAllPoints
in class Function
public com.steema.teechart.functions.BaseTrend.CalcTrend calculateTrend(Series s, int firstIndex, int lastIndex)
s
- SeriesfirstIndex
- intlastIndex
- int
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |