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)
DenseStateFeaturesfeatures in interface DenseStateFeaturess - the input state to turn into a feature vector.public SparseToDenseFeatures copy()
DenseStateFeaturesDenseStateFeaturescopy in interface DenseStateFeaturesDenseStateFeatures