public class ExpAverage extends Moving
Title: ExpAverage class
Description: Exponential 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 |
---|
ExpAverage() |
ExpAverage(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
double |
calculate(Series s,
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.
|
double |
getWeight()
Performs an Exponential average based on its DataSource values.
The formula used is: ExpAverage ( point ) = ExpAverage ( previous point ) * ( 1 - Weight ) + Weight * PointValue Default value: 0.2 |
void |
setWeight(double value)
Performs an Exponential average based on its DataSource values.
Default value: 0.2D |
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 ExpAverage()
public ExpAverage(IBaseChart c)
public double getWeight()
public void setWeight(double value) throws ChartException
value
- doubleTeeChartException
ChartException
getWeight()
public double calculate(Series s, int firstIndex, int lastIndex)
public java.lang.String getDescription()
getDescription
in class Function