pub struct RunVariableCollection {
pub sparse: Vec<SparseRunVariable>,
pub dense: Vec<DenseRunVariable>,
pub sampling_rate: f64,
}Expand description
A collection of run-level BIDS variables.
Fields§
§sparse: Vec<SparseRunVariable>§dense: Vec<DenseRunVariable>§sampling_rate: f64Implementations§
Source§impl RunVariableCollection
impl RunVariableCollection
pub fn new( sparse: Vec<SparseRunVariable>, dense: Vec<DenseRunVariable>, sampling_rate: Option<f64>, ) -> Self
pub fn get_sparse(&self, name: &str) -> Option<&SparseRunVariable>
pub fn get_dense(&self, name: &str) -> Option<&DenseRunVariable>
pub fn sparse_names(&self) -> Vec<&str>
pub fn dense_names(&self) -> Vec<&str>
pub fn all_sparse(&self) -> bool
pub fn all_dense(&self) -> bool
pub fn names(&self) -> Vec<&str>
Sourcepub fn densify_and_resample(
&mut self,
sampling_rate: Option<f64>,
force_dense: bool,
resample_dense: bool,
)
pub fn densify_and_resample( &mut self, sampling_rate: Option<f64>, force_dense: bool, resample_dense: bool, )
Combined densify + resample pipeline.
Sourcepub fn to_rows_with_options(
&self,
include_sparse: bool,
include_dense: bool,
sampling_rate: Option<f64>,
) -> Vec<StringEntities> ⓘ
pub fn to_rows_with_options( &self, include_sparse: bool, include_dense: bool, sampling_rate: Option<f64>, ) -> Vec<StringEntities> ⓘ
Convert to rows with sampling rate option.
Sourcepub fn resolve_sampling_rate(&self, requested: Option<&str>) -> f64
pub fn resolve_sampling_rate(&self, requested: Option<&str>) -> f64
Resolve sampling rate from string (‘TR’, ‘highest’, or numeric).
Trait Implementations§
Source§impl Clone for RunVariableCollection
impl Clone for RunVariableCollection
Source§fn clone(&self) -> RunVariableCollection
fn clone(&self) -> RunVariableCollection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunVariableCollection
impl Debug for RunVariableCollection
Source§impl Default for RunVariableCollection
impl Default for RunVariableCollection
Source§fn default() -> RunVariableCollection
fn default() -> RunVariableCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RunVariableCollection
impl RefUnwindSafe for RunVariableCollection
impl Send for RunVariableCollection
impl Sync for RunVariableCollection
impl Unpin for RunVariableCollection
impl UnsafeUnpin for RunVariableCollection
impl UnwindSafe for RunVariableCollection
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
Mutably borrows from an owned value. Read more