All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.chen0040.gp.commons.Observation Maven / Gradle / Ivy

There is a newer version: 1.0.14
Show newest version
package com.github.chen0040.gp.commons;


import java.io.Serializable;


/**
 * Created by xschen on 2/5/2017.
 */
public interface Observation extends Serializable {

   double getInput(int index);
   double getOutput(int index);
   double getPredictedOutput(int index);

   default String getTextInput(int index) { return null; }
   default String getTextOutput(int index) { return null; }
   default String getPredictedTextOutput(int index) { return null; }

   void setOutput(int index, double value);
   void setInput(int index, double value);
   void setPredictedOutput(int index, double value);

   default void setOutput(int index, String value) {

   }
   default void setInput(int index, String value) {

   }
   default void setPredictedOutput(int index, String value) {

   }

   int inputCount();
   int outputCount();

   Serializable getTag();
   void setTag(Serializable obj);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy