public class MovingAverage extends Moving
Title: MovingAverage class
Description: Moving Average Function
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
canUsePeriod, dPeriod, HideSourceList, noSourceRequired, series, SingleSource, updating
chart, InternalUse
Constructor and Description |
---|
MovingAverage() |
MovingAverage(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
double |
calculate(Series sourceSeries,
int firstIndex,
int lastIndex)
Performs function operation on SourceSeries series.
First and Last parameters are ValueIndex of first and last point used in calculation. |
java.lang.String |
getDescription()
Gets descriptive text.
|
boolean |
getWeighted()
Calculates the Moving Average using the corresponding X point values
when true.
Default value: false |
boolean |
getWeightedIndex()
Calculates the Moving Average using the source points index as the
"weight" when true.
Default value: false |
void |
setWeighted(boolean value)
Set Weighted to true to calculate Moving Average using the corresponding
X point values.
Default value: false |
void |
setWeightedIndex(boolean value)
Calculates the Moving Average using the source points index as the
"weight" when true.
Default value: false |
doCalculation
addFunctionXY, addPoints, calculateAllPoints, calculateByPeriod, calculateMany, calculatePeriod, clear, dispose, getPeriod, getPeriodAlign, getPeriodStyle, getSeries, newInstance, readResolve, recalculate, setPeriod, setPeriodAlign, setPeriodStyle, setSeries, valueList
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public MovingAverage()
public MovingAverage(IBaseChart c)
public boolean getWeighted()
public void setWeighted(boolean value)
value
- booleanpublic boolean getWeightedIndex()
public void setWeightedIndex(boolean value)
value
- booleanpublic double calculate(Series sourceSeries, int firstIndex, int lastIndex)
public java.lang.String getDescription()
getDescription
in class Function