pub struct StreamingDetectionResult {
pub channels: usize,
pub total_samples: u64,
pub sample_rate_hz: f64,
pub halos: (u64, u64),
pub channel_sigmas_uv: Vec<f32>,
pub total_raw_crossings: u64,
pub total_dedup_spikes: u64,
pub channel_spike_counts: Vec<u64>,
pub channel_templates: Vec<Option<WaveformTemplate>>,
pub spikes: Vec<DeduplicatedSpike>,
pub spike_locations_um: Vec<[f32; 3]>,
}Expand description
Result of running out-of-core threshold spike sorting over a recording.
Fields§
§channels: usizeNumber of channels in the recording.
total_samples: u64Total samples processed across the recording.
sample_rate_hz: f64Sampling rate in Hz.
halos: (u64, u64)Computed (left_halo, right_halo) in samples used during chunked streaming.
channel_sigmas_uv: Vec<f32>Calibrated Quiroga MAD noise floor ($\sigma_n$ in $\mu\text{V}$) per channel.
total_raw_crossings: u64Total raw threshold crossings across all channels before spatial deduplication.
total_dedup_spikes: u64Total spatially deduplicated spikes across the recording.
channel_spike_counts: Vec<u64>Deduplicated spike count per primary channel.
channel_templates: Vec<Option<WaveformTemplate>>Online Welford-accumulated waveform template (mean $\pm$ std) per primary channel.
spikes: Vec<DeduplicatedSpike>Deduplicated spike events with global sample_index across the recording.
spike_locations_um: Vec<[f32; 3]>Location of each spike of spikes (µm, centre of mass over its K neighbours); empty when
not located (StreamingDetectionConfig::locate).
Implementations§
Source§impl StreamingDetectionResult
impl StreamingDetectionResult
Sourcepub fn to_sorting_output(
&self,
sorter_name: impl Into<String>,
probe: Option<SensorLayout>,
) -> SortingOutput
pub fn to_sorting_output( &self, sorter_name: impl Into<String>, probe: Option<SensorLayout>, ) -> SortingOutput
This result as a SortingOutput with one unit per primary channel that has spikes
(a channel-level summary, not a spike sorting: unit metrics describe channels).
Trait Implementations§
Source§impl Clone for StreamingDetectionResult
impl Clone for StreamingDetectionResult
Auto Trait Implementations§
impl Forget for StreamingDetectionResult
impl Freeze for StreamingDetectionResult
impl Move for StreamingDetectionResult
impl RefUnwindSafe for StreamingDetectionResult
impl Send for StreamingDetectionResult
impl Sync for StreamingDetectionResult
impl Unpin for StreamingDetectionResult
impl UnsafeUnpin for StreamingDetectionResult
impl UnwindSafe for StreamingDetectionResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneExpand for Twhere
T: Clone,
impl<T> CloneExpand for Twhere
T: Clone,
fn __expand_clone_method(&self, _: &Scope) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more