com.exponto.jstock.indicators
Class EMAAlgorithm

java.lang.Object
  |
  +--com.exponto.jstock.indicators.EMAAlgorithm

public class EMAAlgorithm
extends java.lang.Object

Author:
kaare

Constructor Summary
EMAAlgorithm()
           
 
Method Summary
static java.util.ArrayList computeEMA(LogDataSeries logDS, int periode)
          Calculates the EMA over a periode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMAAlgorithm

public EMAAlgorithm()
Method Detail

computeEMA

public static java.util.ArrayList computeEMA(LogDataSeries logDS,
                                             int periode)
Calculates the EMA over a periode. The EMA hve to be scaled if it is supposed to be drawn in a logaritmic chart.

Parameters:
logDS - the logDataSeries
periode - the number of days to use in the calculation
Returns:
an ArrayList with EMA(periode) data


Copyright © 2004 Kaare Ranum