RLPark 1.0.0
Reinforcement Learning Framework in Java

ConstantFunction.java

Go to the documentation of this file.
00001 package rlpark.plugin.rltoys.problems.puddleworld;
00002 
00003 import rlpark.plugin.rltoys.algorithms.functions.ContinuousFunction;
00004 import zephyr.plugin.core.api.labels.Labeled;
00005 
00006 public class ConstantFunction implements ContinuousFunction, Labeled {
00007   private final double value;
00008 
00009   public ConstantFunction(double value) {
00010     this.value = value;
00011   }
00012 
00013   @Override
00014   public double value(double[] input) {
00015     return value;
00016   }
00017 
00018   @Override
00019   public String label() {
00020     return "Constant" + String.valueOf(value);
00021   }
00022 }
 All Classes Namespaces Files Functions Variables Enumerations
Zephyr
RLPark