public class PFFeatureVectorGenerator extends java.lang.Object implements StateToFeatureVectorGenerator
Modifier and Type | Field and Description |
---|---|
protected PropositionalFunction[] |
pfsToUse |
Constructor and Description |
---|
PFFeatureVectorGenerator(Domain domain)
Initializes using all propositional functions that belong to the domain
|
PFFeatureVectorGenerator(java.util.List<PropositionalFunction> pfs)
Initializes using the list of given propositional functions.
|
PFFeatureVectorGenerator(PropositionalFunction[] pfs)
Initializes using the array of given propositional functions.
|
Modifier and Type | Method and Description |
---|---|
double[] |
generateFeatureVectorFrom(State s)
Returns a feature vector represented as a double array for a given input state.
|
protected PropositionalFunction[] pfsToUse
public PFFeatureVectorGenerator(Domain domain)
domain
- the domain containing all the propositional functions to usepublic PFFeatureVectorGenerator(java.util.List<PropositionalFunction> pfs)
pfs
- the propositional functions to use.public PFFeatureVectorGenerator(PropositionalFunction[] pfs)
pfs
- the propositional functions to use.public double[] generateFeatureVectorFrom(State s)
StateToFeatureVectorGenerator
generateFeatureVectorFrom
in interface StateToFeatureVectorGenerator
s
- the input state to turn into a feature vector.