com.github.chen0040.gp.commons.Observation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-genetic-programming Show documentation
Show all versions of java-genetic-programming Show documentation
Genetic Programming in Java, including packages on Linear Genetic Programming
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