public class SparseToDenseFeatures extends java.lang.Object implements DenseStateFeatures
SparseStateFeatures
into a DenseStateFeatures
.Modifier and Type | Field and Description |
---|---|
protected SparseStateFeatures |
sparseStateFeatures |
Constructor and Description |
---|
SparseToDenseFeatures(SparseStateFeatures sparseStateFeatures)
Initializes.
|
Modifier and Type | Method and Description |
---|---|
SparseToDenseFeatures |
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.
|
SparseStateFeatures |
getSparseStateFeatures() |
void |
setSparseStateFeatures(SparseStateFeatures sparseStateFeatures) |
protected SparseStateFeatures sparseStateFeatures
public SparseToDenseFeatures(SparseStateFeatures sparseStateFeatures)
sparseStateFeatures
- the sparse features to usepublic SparseStateFeatures getSparseStateFeatures()
public void setSparseStateFeatures(SparseStateFeatures sparseStateFeatures)
public double[] features(State s)
DenseStateFeatures
features
in interface DenseStateFeatures
s
- the input state to turn into a feature vector.public SparseToDenseFeatures copy()
DenseStateFeatures
DenseStateFeatures
copy
in interface DenseStateFeatures
DenseStateFeatures