Documentation of 'org.encog.ml.data.market.loader.LoadedMarketData' Java class
LoadedMarketData
org.encog.ml.data.market.loader

Class LoadedMarketData

  • All Implemented Interfaces:
    java.lang.Comparable<LoadedMarketData>


    public class LoadedMarketData
    extends java.lang.Object
    implements java.lang.Comparable<LoadedMarketData>
    This class contains market data that was loaded for a specific ticker symbol and a specific date. This data is usually loaded from external sources.
    • Constructor Detail

      • LoadedMarketData

        public LoadedMarketData(java.util.Date when,
                                TickerSymbol ticker)
        Construct one sample of market data.
        Parameters:
        when - When was this sample taken.
        ticker - What is the ticker symbol for this data.
    • Method Detail

      • getData

        public double getData(MarketDataType type)
        Get one type of market data from this date.
        Parameters:
        type - The type of data needed.
        Returns:
        The market data for the specified date and of the specified type.
      • getTicker

        public TickerSymbol getTicker()
        Returns:
        The ticker symbol this sample is assocated with.
      • getWhen

        public java.util.Date getWhen()
        Returns:
        When this sample was taken.
      • setData

        public void setData(MarketDataType type,
                            double data)
        Set financial data for this date.
        Parameters:
        type - The type of data being set.
        data - The value of the data being set.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.