com.steema.teechart.functions
Class Variance

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.functions.Function
          extended by com.steema.teechart.functions.Variance
All Implemented Interfaces:
java.io.Serializable

public class Variance
extends Function

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

See Also:
Serialized Form

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

Variance

public Variance()
Method Detail

calculate

public double calculate(Series s,
                        int firstIndex,
                        int lastIndex)
Performs function operation on s series.

Overrides:
calculate in class Function
Parameters:
s - Series
firstIndex - int
lastIndex - int
Returns:
double

calculateMany

public double calculateMany(java.util.ArrayList sourceSeries,
                            int valueIndex)
Performs function operation on all sourceSeries series.

Overrides:
calculateMany in class Function
Parameters:
sourceSeries - ArrayList
valueIndex - int
Returns:
double

getDescription

public java.lang.String getDescription()
Gets descriptive text.

Overrides:
getDescription in class Function
Returns:
String