Class MovingAverageDemo

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.jfree.ui.ApplicationFrame
org.jfree.chart.demo.MovingAverageDemo
All Implemented Interfaces:
WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class MovingAverageDemo
extends org.jfree.ui.ApplicationFrame
An example showing the calculation of a moving average for a time series.
See Also:
Serialized Form
  • Constructor Details

    • MovingAverageDemo

      public MovingAverageDemo​(String title)
      A moving average demo.
      Parameters:
      title - the frame title.
  • Method Details

    • createDataset

      public XYDataset createDataset()
      Creates a dataset, one series containing unit trust prices, the other a moving average.
      Returns:
      the dataset.
    • main

      public static void main​(String[] args)
      Starting point for the demonstration application.
      Parameters:
      args - ignored.