|
||||||||||
| 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.Variance
public class Variance
Title: Variance class
Description: Variance function.
Example:
function = new com.steema.teechart.functions.Variance();
function.setChart(myChart.getChart());
function.setPeriod(0); //all points
Line functionSeries = new Line(myChart.getChart());
functionSeries.setTitle("Variance");
functionSeries.setDataSource(series);
functionSeries.setVerticalAxis(VerticalAxis.RIGHT);
functionSeries.setFunction(function);
Copyright (c) 2005-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 |
| Constructor Summary | |
|---|---|
Variance()
|
|
| Method Summary | |
|---|---|
double |
calculate(Series s,
int firstIndex,
int lastIndex)
Performs function operation on s series. |
double |
calculateMany(java.util.ArrayList sourceSeries,
int valueIndex)
Performs function operation on all sourceSeries series. |
java.lang.String |
getDescription()
Gets descriptive text. |
| Methods inherited from class com.steema.teechart.functions.Function |
|---|
addFunctionXY, addPoints, calculateAllPoints, calculateByPeriod, calculatePeriod, clear, doCalculation, 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 Variance()
| Method Detail |
|---|
public double calculate(Series s,
int firstIndex,
int lastIndex)
calculate in class Functions - SeriesfirstIndex - intlastIndex - int
public double calculateMany(java.util.ArrayList sourceSeries,
int valueIndex)
calculateMany in class FunctionsourceSeries - ArrayListvalueIndex - int
public java.lang.String getDescription()
getDescription in class Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||