public abstract class Feature extends java.lang.Object implements java.lang.Comparable<Feature>
Modifier and Type | Field and Description |
---|---|
static int |
ABS_REF_PERIODS |
static int |
BIAS |
static int |
BP_TRAINING |
protected Decoder |
decoder
The decoder for this Feature.
|
static int |
DELAYS |
protected Evolver |
evolver
The evolution master.
|
static int |
FUNCTIONS |
protected int |
id
The unique feature ID.
|
static int |
LINKS |
protected double |
maxValue
The maximal value to develop.
|
protected double |
minValue
The minimal value to develop.
|
static int |
NEURONS |
protected java.util.List<Feature> |
params
The field features (null, if not used).
|
static int |
PATTERNS |
static int |
REL_REF_PERIODS |
static int |
RPROP_TRAINING |
static int |
SPLINE |
static int |
THRESHOLDS |
protected int |
valueCount
The number of values to develop.
|
static int |
WEIGHTS
The feature IDs also defining the order of feature construction.
|
Modifier | Constructor and Description |
---|---|
protected |
Feature(Decoder decoder)
Constructs the feature with its decoder.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Feature another)
The natural ordering based on IDs is used for the order of decoding features.
|
abstract void |
develop()
Develops the feature.
|
Decoder |
getDecoder()
Return the decoder used by this feature.
|
Feature |
getField(int id)
Returns a specific field of a sub-feature.
|
int |
getId()
Returns the unique feature ID, which is used to assign a feature to the
corresponding evolver.
|
double |
getMaxValue()
Returns the maximal value to develop.
|
double |
getMinValue()
Returns the minimal value to develop.
|
int |
getValueCount()
Returns the number of values for this feature.
|
void |
setDecoder(Decoder decoder)
Sets the decoder used by this feature.
|
void |
setMaxValue(double maxValue)
Sets the maximal value to develop.
|
void |
setMinValue(double minValue)
Sets the minimal value to develop.
|
abstract void |
setup(Evolver evolver)
Sets up the feature parameters.
|
protected void |
setupFields()
Sets up the fields with correct values.
|
java.lang.String |
toString()
Returns a description of this Feature.
|
public static final int WEIGHTS
public static final int DELAYS
public static final int BIAS
public static final int THRESHOLDS
public static final int ABS_REF_PERIODS
public static final int REL_REF_PERIODS
public static final int LINKS
public static final int SPLINE
public static final int FUNCTIONS
public static final int NEURONS
public static final int BP_TRAINING
public static final int RPROP_TRAINING
public static final int PATTERNS
protected int id
protected Evolver evolver
protected Decoder decoder
protected int valueCount
protected double minValue
protected double maxValue
protected java.util.List<Feature> params
protected Feature(Decoder decoder)
decoder
- a decoderpublic int compareTo(Feature another)
compareTo
in interface java.lang.Comparable<Feature>
another
- a featurepublic int getId()
public Decoder getDecoder()
public void setDecoder(Decoder decoder)
public int getValueCount()
public double getMinValue()
public void setMinValue(double minValue)
minValue
- the minimal valuepublic double getMaxValue()
public void setMaxValue(double maxValue)
maxValue
- the maximal valuepublic Feature getField(int id)
id
- a field ID defined in the Featurepublic java.lang.String toString()
toString
in class java.lang.Object
protected void setupFields()
public abstract void setup(Evolver evolver)
evolver
- the evolverpublic abstract void develop()