nengolib.signal.Encoders¶
-
class
nengolib.signal.
Encoders
(sys, process, n_steps=10000, dt=None, **run_steps_kwargs)[source]¶ Samples axis-aligned encoders from the maximum radii of a LinearSystem.
Given some input process. This is useful when setting
encoders
in conjunction withnormalize_encoders=False
, in order to set the effective radius of each dimension to its maximum absolute value. The evaluation points should still be sampled from within this radii. Paramters are the same asEvalPoints
. Used byRollingWindow
.Parameters: - sys :
linear_system_like
Linear system representation.
- process :
nengo.Process
Nengo process to simulate.
- n_steps :
integer
, optional Number of steps to simulate the process. Defaults to
10000
.- dt :
float
, optional Process and system simulation time-step. Defaults to
process.default_dt
.- **run_steps_kwargs :
dictionary
, optional Additional keyword arguments for
process.run_steps
.
Notes
The option
normalize_encoders=False
, required to make this useful, is only available innengo>=2.4.0
. Otherwise these encoders will end up being equivalent tonengo.dists.Choice(np.vstack([I, -I]))
(i.e., unit-length and axis-aligned).Methods
sample
(num[, d, rng])Samples n
points ind
dimensions.- sys :