pashehnet.sensors.sources.unit_impulse#
Module Contents#
Classes#
Unit impulse signal (discrete delta function) or unit basis vector. See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.unit_impulse.html |
API#
- class pashehnet.sensors.sources.unit_impulse.UnitImpulseSource(shape, idx=None, dtype=np.float64)#
Bases:
pashehnet.sensors.sources.base.SensorSourceBaseUnit impulse signal (discrete delta function) or unit basis vector. See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.unit_impulse.html
- Parameters:
shape – int or tuple of int. Number of samples in the output (1-D), or a tuple that represents the shape of the output (N-D).
idx – None or int or tuple of int or ‘mid’, optional. Index at which the value is 1. If None, defaults to the 0th element. If idx=’mid’, the impulse will be centered at shape // 2 in all dimensions. If an int, the impulse will be at idx in all dimensions.
dtype – data-type, optional. The desired data-type for the array, e.g., numpy.int8. Default is numpy.float64.
Initialization
- __iter__()#
- __next__()#
Implementation for iterator
- Returns:
Next value from source
- __slots__ = ()#