This project has retired. For details please refer to its Attic page.
ForecastingModel.ForecastingLabel (Lens 2.0.1-beta-incubating API)

org.apache.lens.ml
Class ForecastingModel.ForecastingLabel

java.lang.Object
  extended by org.apache.lens.ml.ForecastingModel.ForecastingLabel
All Implemented Interfaces:
LabelledPrediction<Long,Double>
Enclosing class:
ForecastingModel

public static class ForecastingModel.ForecastingLabel
extends Object
implements LabelledPrediction<Long,Double>

The Class ForecastingLabel.


Constructor Summary
ForecastingModel.ForecastingLabel(long timestamp, double value)
          Instantiates a new forecasting label.
 
Method Summary
 Long getLabel()
           
 Double getPrediction()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForecastingModel.ForecastingLabel

public ForecastingModel.ForecastingLabel(long timestamp,
                                         double value)
Instantiates a new forecasting label.

Parameters:
timestamp - the timestamp
value - the value
Method Detail

getLabel

public Long getLabel()
Specified by:
getLabel in interface LabelledPrediction<Long,Double>

getPrediction

public Double getPrediction()
Specified by:
getPrediction in interface LabelledPrediction<Long,Double>


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.