org.encog.ml.data.market.loader
public class LoadedMarketData extends Object implements Comparable<LoadedMarketData>
| Modifier and Type | Field and Description |
|---|---|
int |
INDEX_DOUBLE_CLOSE |
int |
INDEX_DOUBLE_HIGH |
int |
INDEX_DOUBLE_LOW |
int |
INDEX_DOUBLE_OPEN |
| Constructor and Description |
|---|
LoadedMarketData(Date when,
TickerSymbol ticker)
Construct one sample of market data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LoadedMarketData other) |
double |
getData(MarketDataType type)
Get one type of market data from this date.
|
TickerSymbol |
getTicker() |
Date |
getWhen() |
void |
setData(MarketDataType type,
double data)
Set financial data for this date.
|
public final int INDEX_DOUBLE_HIGH
public final int INDEX_DOUBLE_LOW
public final int INDEX_DOUBLE_OPEN
public final int INDEX_DOUBLE_CLOSE
public LoadedMarketData(Date when, TickerSymbol ticker)
when - When was this sample taken.ticker - What is the ticker symbol for this data.public int compareTo(LoadedMarketData other)
compareTo in interface Comparable<LoadedMarketData>public double getData(MarketDataType type)
type - The type of data needed.public TickerSymbol getTicker()
public Date getWhen()
public void setData(MarketDataType type, double data)
type - The type of data being set.data - The value of the data being set.Copyright © 2014. All Rights Reserved.