public class Tiling
extends java.lang.Object
Tiling
class, this tiling method does not take OO-MDP states as input; instead
states must first be converted into a feature vector and passed to this class. As a consequence, this tiling method is object identiferi *dependent*.Modifier and Type | Class and Description |
---|---|
class |
Tiling.FVTile
Stores a tiled version of a feature vector with a hashcode and equality comparions methods implemented.
|
Modifier and Type | Field and Description |
---|---|
protected boolean[] |
dimensionMask
The dimensions on which this tiling are dependent
|
protected double[] |
offset
The offset along each dimenision in the tiling
|
protected double[] |
widths
The width of each dimension in this tiling
|
Constructor and Description |
---|
Tiling(double[] widths,
double[] offset)
Constructs a tiling using the given widths, offset of each dimension's tiling, and assuming the tiling is over all dimensions.
|
Tiling(double[] widths,
double[] offset,
boolean[] dimensionMask)
Constructs a tiling using the given widths, offset of each dimension's tiling, and which dimensions are actually used in the tiling.
|
Modifier and Type | Method and Description |
---|---|
Tiling.FVTile |
getFVTile(double[] input)
Retunrs a tile for the given input vector.
|
protected double[] widths
protected double[] offset
protected boolean[] dimensionMask
public Tiling(double[] widths, double[] offset)
widths
- the widths of each dimension's tilingoffset
- the offset of the tiling for each dimension (should be a faction of the width).public Tiling(double[] widths, double[] offset, boolean[] dimensionMask)
widths
- the widths of each dimension's tilingoffset
- the offset of the tiling for each dimension (should be a faction of the width).dimensionMask
- specifies which dimensions are used in the tilingpublic Tiling.FVTile getFVTile(double[] input)
input
- the input vector to tile