public class ConcatenatedObjectFeatureVectorGenerator extends java.lang.Object implements StateToFeatureVectorGenerator
Modifier and Type | Field and Description |
---|---|
protected boolean |
normalizeValues
Whether object values should be normalized.
|
protected java.lang.String[] |
objectClassOrder
The order of object classes and their order to follow when concatenting objects into a single state feature vector.
|
Constructor and Description |
---|
ConcatenatedObjectFeatureVectorGenerator(boolean normalizeValues,
java.lang.String... objectClassOrder)
Initializes with an array of or object class names.
|
ConcatenatedObjectFeatureVectorGenerator(java.lang.String... objectClassOrder)
Initializes with an array of or object class names.
|
Modifier and Type | Method and Description |
---|---|
double[] |
generateFeatureVectorFrom(State s)
Returns a feature vector represented as a double array for a given input state.
|
void |
setNormalizeValues(boolean normalizeValues)
Sets whether the object values are normalized in the returned feature vector
|
protected java.lang.String[] objectClassOrder
protected boolean normalizeValues
public ConcatenatedObjectFeatureVectorGenerator(java.lang.String... objectClassOrder)
objectClassOrder
- the sequence of object classes to use when constructing a state feature vector.public ConcatenatedObjectFeatureVectorGenerator(boolean normalizeValues, java.lang.String... objectClassOrder)
normalizeValues
- whether the values in the feature vector should be normalized.objectClassOrder
- the sequence of object classes to use when constructing a state feature vector.public void setNormalizeValues(boolean normalizeValues)
normalizeValues
- true if values should be normalized; false if they should be unnormalized.public double[] generateFeatureVectorFrom(State s)
StateToFeatureVectorGenerator
generateFeatureVectorFrom
in interface StateToFeatureVectorGenerator
s
- the input state to turn into a feature vector.