pub struct Record {
pub raw_signal_samples: Vec<Vec<i16>>,
pub annotations: Vec<Vec<AnnotationList>>,
/* private fields */
}Fields§
§raw_signal_samples: Vec<Vec<i16>>§annotations: Vec<Vec<AnnotationList>>Implementations§
Source§impl Record
impl Record
pub fn new(signal_headers: &Vec<SignalHeader>) -> Self
pub fn patch_record( &mut self, instructions: &Vec<SaveInstruction>, ) -> Result<(), EDFError>
pub fn insert_signal_samples( &mut self, signal_index: usize, samples_count: usize, ) -> Result<(), EDFError>
pub fn insert_annotation( &mut self, signal_index: usize, samples_count: usize, ) -> Result<(), EDFError>
pub fn remove_signal(&mut self, signal_index: usize) -> Result<(), EDFError>
pub fn update_samples_count( &mut self, signal_index: usize, samples_count: usize, ) -> Result<(), EDFError>
pub fn set_annotation( &mut self, signal_index: usize, annotations: Vec<AnnotationList>, ) -> Result<(), EDFError>
pub fn set_samples( &mut self, signal_index: usize, samples: Vec<i16>, ) -> Result<(), EDFError>
pub fn get_digital_samples(&self, signal: &SignalHeader) -> Vec<Vec<i32>>
pub fn get_physical_samples(&self, signal: &SignalHeader) -> Vec<Vec<f64>>
Sourcepub fn get_start_offset(&self) -> f64
pub fn get_start_offset(&self) -> f64
Returns the onset of the current record relative to the start of the recording of the EDF+ file.
This only returns useful information for EDF+ files. Regular EDF files will always return the
index of the data-record multiplied by the data-record duration as records are missing the time keeping context.
If there were to be multiple signals labeled EDF Annotations, the first one will be used to check for the
Time-keeping-list entry
pub fn serialize(&self) -> Result<Vec<u8>, EDFError>
pub fn matches_signals(&self, signal_headers: &Vec<SignalHeader>) -> bool
Trait Implementations§
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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