public class PFFeatures extends java.lang.Object implements DenseStateFeatures
PropositionalFunction
s. The element for a corresponding
PropositionalFunction
is set to 1, when any possible binding for the PropositionalFunction
is true
for the input state.Modifier and Type | Field and Description |
---|---|
protected PropositionalFunction[] |
pfsToUse |
Constructor and Description |
---|
PFFeatures(java.util.List<PropositionalFunction> pfs)
Initializes using the list of given propositional functions.
|
PFFeatures(OODomain domain)
Initializes using all propositional functions that belong to the domain
|
PFFeatures(PropositionalFunction[] pfs)
Initializes using the array of given propositional functions.
|
Modifier and Type | Method and Description |
---|---|
DenseStateFeatures |
copy()
Returns a copy of this
DenseStateFeatures |
double[] |
features(State s)
Returns a feature vector represented as a double array for a given input state.
|
protected PropositionalFunction[] pfsToUse
public PFFeatures(OODomain domain)
domain
- the domain containing all the propositional functions to usepublic PFFeatures(java.util.List<PropositionalFunction> pfs)
pfs
- the propositional functions to use.public PFFeatures(PropositionalFunction[] pfs)
pfs
- the propositional functions to use.public double[] features(State s)
DenseStateFeatures
features
in interface DenseStateFeatures
s
- the input state to turn into a feature vector.public DenseStateFeatures copy()
DenseStateFeatures
DenseStateFeatures
copy
in interface DenseStateFeatures
DenseStateFeatures