pub struct NodeIndex { /* private fields */ }Expand description
Top-level index organizing all variable nodes in a BIDS dataset.
The NodeIndex maintains a flat list of nodes (both run-level and
higher-level) and provides methods to find, create, and query nodes
by level and entity values. Nodes are created during variable loading
and can be queried to extract variable collections for statistical
modeling.
Implementations§
Source§impl NodeIndex
impl NodeIndex
pub fn new() -> Self
pub fn create_run_node( &mut self, entities: StringEntities, image_file: Option<String>, duration: f64, tr: f64, n_vols: usize, ) -> usize
pub fn create_node(&mut self, level: &str, entities: StringEntities) -> usize
pub fn get_run_node_mut(&mut self, index: usize) -> Option<&mut RunNode>
pub fn get_node_mut(&mut self, index: usize) -> Option<&mut Node>
Sourcepub fn find_nodes(&self, level: &str, entities: &StringEntities) -> Vec<usize>
pub fn find_nodes(&self, level: &str, entities: &StringEntities) -> Vec<usize>
Find nodes matching level and entities, sorted by subject/session/task/run.
Sourcepub fn get_or_create_node(
&mut self,
level: &str,
entities: StringEntities,
) -> usize
pub fn get_or_create_node( &mut self, level: &str, entities: StringEntities, ) -> usize
Find or create a node.
Sourcepub fn get_or_create_run_node(
&mut self,
entities: StringEntities,
image_file: Option<String>,
duration: f64,
tr: f64,
n_vols: usize,
) -> usize
pub fn get_or_create_run_node( &mut self, entities: StringEntities, image_file: Option<String>, duration: f64, tr: f64, n_vols: usize, ) -> usize
Find or create a run node.
Sourcepub fn get_run_collections(
&self,
entities: &StringEntities,
) -> Vec<RunVariableCollection>
pub fn get_run_collections( &self, entities: &StringEntities, ) -> Vec<RunVariableCollection>
Collect run-level variables into collections.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeIndex
impl RefUnwindSafe for NodeIndex
impl Send for NodeIndex
impl Sync for NodeIndex
impl Unpin for NodeIndex
impl UnsafeUnpin for NodeIndex
impl UnwindSafe for NodeIndex
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