| 86 | |
| 87 | |
| 88 | class PoissonEncoder(Encoder): |
| 89 | def __init__(self, time: int, dt: float = 1.0, approx: bool = False, **kwargs): |
| 90 | # language=rst |
| 91 | """ |
| 92 | Creates a callable PoissonEncoder which encodes as defined in |
| 93 | ``bindsnet.encoding.poisson` |
| 94 | |
| 95 | :param time: Length of Poisson spike train per input variable. |
| 96 | :param dt: Simulation time step. |
| 97 | :param approx: Bool: use alternate faster, less accurate computation. |
| 98 | |
| 99 | """ |
| 100 | super().__init__(time, dt=dt, approx=approx, **kwargs) |
| 101 | |
| 102 | self.enc = encodings.poisson |
| 103 | |
| 104 | |
| 105 | class RankOrderEncoder(Encoder): |
no outgoing calls
no test coverage detected