public class SpikeMatrix extends Matrix implements java.lang.Cloneable
Constructor and Description |
---|
SpikeMatrix(int rows)
Constructs an net matrix with three extra columns and all elements marked as unused.
|
Modifier and Type | Method and Description |
---|---|
SpikeMatrix |
clone()
A deep clone.
|
double |
getAbsRefPeriod(int row)
Returns an absolute refractory period value.
|
double |
getRelRefPeriod(int row)
Returns a relative refractory period value.
|
double |
getThreshold(int row)
Returns a threshold value.
|
void |
setAbsRefPeriod(int row,
double period)
Sets the absolute refractory period in the corresponding column.
|
void |
setRelRefPeriod(int row,
double period)
Sets the relative refractory period in the corresponding column.
|
void |
setThreshold(int row,
double threshold)
Sets a value in the threshold column.
|
public SpikeMatrix(int rows)
rows
- the number of rowspublic SpikeMatrix clone()
public double getThreshold(int row)
row
- the rowpublic void setThreshold(int row, double threshold)
row
- the rowthreshold
- the threshold valuepublic double getAbsRefPeriod(int row)
row
- the rowpublic double getRelRefPeriod(int row)
row
- the rowpublic void setAbsRefPeriod(int row, double period)
row
- the rowperiod
- the absolute refractory periodpublic void setRelRefPeriod(int row, double period)
row
- the rowperiod
- the relative refractory period