Idealizes a stimulus signal.
|
__init__(self,
known_amps,
add_deltas,
delta,
min_dur_ms,
sampling_ms)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
add(self,
samples)
Feeds in a numpy.array(dtype=float32) of samples; you add all
samples, then call done_add, then for each array of samples added,
you call get_next_dwells. |
source code
|
|
|
done_add(self)
Indicates you're done calling add(), so it can prepare the final amps
and dwells. |
source code
|
|
|
get_amps(self)
After you've called done_add(), returns the amp of each class in the
output. |
source code
|
|
|
get_next_dwells(self,
offset_in_data,
sample_count,
get_durations=False)
After you've called done_add(), call this once for each array of
samples you added. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|