pub struct Extractor { /* private fields */ }Expand description
One way of reading a feature out of a piece: music21’s
FeatureExtractor, with what its class says about the feature.
Implementations§
Source§impl Extractor
impl Extractor
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
What the feature measures.
Sourcepub fn dimensions(&self) -> usize
pub fn dimensions(&self) -> usize
How many values the feature has.
Sourcepub fn attribute_labels(&self) -> Vec<String>
pub fn attribute_labels(&self) -> Vec<String>
The labels of the values in a data set: the name with underscores for spaces, numbered where there is more than one value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Extractor
impl RefUnwindSafe for Extractor
impl Send for Extractor
impl Sync for Extractor
impl Unpin for Extractor
impl UnsafeUnpin for Extractor
impl UnwindSafe for Extractor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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