public final class SparseSensorMatrix extends AbstractSensorMatrix
Constructor and Description |
---|
SparseSensorMatrix(int rows,
int columns,
int receptiveFieldWidth,
int receptiveFieldHeight,
Filter defaultFilter)
Create a new sparse sensor matrix with the specified filter.
|
Modifier and Type | Method and Description |
---|---|
int |
columns()
Return the number of columns of this sensor matrix.
|
Sensor |
getSensor(int row,
int column)
Return the sensor in this sensor matrix at the specified row and column,
if any.
|
int |
rows()
Return the number of rows of this sensor matrix.
|
getDefaultFilter, getReceptiveFieldHeight, getReceptiveFieldWidth
public SparseSensorMatrix(int rows, int columns, int receptiveFieldWidth, int receptiveFieldHeight, Filter defaultFilter)
rows
- number of rows, must be >= 1
columns
- number of columns, must be >= 1
receptiveFieldWidth
- receptive field width, must be
>= 0
receptiveFieldHeight
- receptive field height, must be
>= 0
defaultFilter
- default filterpublic int rows()
public int columns()
public Sensor getSensor(int row, int column)
row
- row, must be >= 0
and < rows()
column
- column, must be >= 0
and
< columns()