public class Cumulative extends Function
Title: Cumulative class
Description: The Cumulative function sums the Series values starting from the first point.
Example: Given these values: 1 2 3 The Cumulative function returns: 1 3 6 ( 1=1, 1+2=3 and 1+2+3=6 )
Example:
cumulativeFunction = new com.steema.teechart.functions.
Cumulative(myChart.getChart());
cumulativeFunction.setPeriod(1);
lineSeries.setDataSource(barSeries);
lineSeries.setFunction(cumulativeFunction);
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
canUsePeriod, dPeriod, HideSourceList, noSourceRequired, series, SingleSource, updatingchart, InternalUse| Constructor and Description |
|---|
Cumulative() |
Cumulative(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. |
double |
calculateMany(java.util.ArrayList sourceSeriesList,
int valueIndex)
Performs function operation on list of series (SourceSeriesList).
The ValueIndex parameter defines ValueIndex of point in each Series in list. |
java.lang.String |
getDescription()
Gets descriptive text.
|
addFunctionXY, addPoints, calculateAllPoints, calculateByPeriod, calculatePeriod, clear, dispose, doCalculation, getPeriod, getPeriodAlign, getPeriodStyle, getSeries, newInstance, readResolve, recalculate, setPeriod, setPeriodAlign, setPeriodStyle, setSeries, valueListgetChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertypublic Cumulative()
public Cumulative(IBaseChart c)
public double calculate(Series sourceSeries, int firstIndex, int lastIndex)
public double calculateMany(java.util.ArrayList sourceSeriesList,
int valueIndex)
calculateMany in class FunctionsourceSeriesList - ArrayListvalueIndex - intpublic java.lang.String getDescription()
getDescription in class Function