Package org.encog.ml.data.temporal

Examples of org.encog.ml.data.temporal.TemporalPoint


   * @return Returns the TemporalPoint created for the specified date.
   */
  @Override
  public TemporalPoint createPoint(final Date when) {
    final int sequence = getSequenceFromDate(when);
    TemporalPoint result = this.pointIndex.get(sequence);

    if (result == null) {
      result = super.createPoint(when);
      this.pointIndex.put(result.getSequence(), result);
    }

    return result;
  }
View Full Code Here


  private void loadSymbol(final TickerSymbol ticker, final Date from,
      final Date to) {
    final Collection<LoadedMarketData> data = getLoader().load(ticker,
        null, from, to);
    for (final LoadedMarketData item : data) {
      final TemporalPoint point = this.createPoint(item.getWhen());

      loadPointFromMarketData(ticker, point, item);
    }
  }
View Full Code Here

TOP

Related Classes of org.encog.ml.data.temporal.TemporalPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.