com.steema.teechart.functions
Class Stochastic

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.functions.Function
          extended by com.steema.teechart.functions.Moving
              extended by com.steema.teechart.functions.Stochastic

public class Stochastic
extends Moving

Title: Stochastic class

Description: Stochastic Function.

Copyright (c) 2005-2013 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, InternalUse
 
Constructor Summary
Stochastic()
           
Stochastic(IBaseChart c)
           
 
Method Summary
 void addPoints(java.util.Vector source)
          Gets all points from Source series, performs a function operation on points and stores results in ParentSeries.
 double calculate(Series s, int firstIndex, int lastIndex)
          Performs function operation on SourceSeries series.
 java.lang.String getDescription()
          Gets descriptive text.
 
Methods inherited from class com.steema.teechart.functions.Moving
doCalculation
 
Methods inherited from class com.steema.teechart.functions.Function
addFunctionXY, calculateAllPoints, calculateByPeriod, calculateMany, calculatePeriod, clear, dispose, 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

Stochastic

public Stochastic()

Stochastic

public Stochastic(IBaseChart c)
Method Detail

addPoints

public void addPoints(java.util.Vector source)
Gets all points from Source series, performs a function operation on points and stores results in ParentSeries.

Overrides:
addPoints in class Function
Parameters:
source - ArrayList

calculate

public 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.
You can override Calculate function to perform customized calculation on one SourceSeries.

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

getDescription

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

Overrides:
getDescription in class Function
Returns:
String