pub struct PerceptualWeight {
pub emotional: f32,
pub presence: f32,
pub continuity: f32,
pub class: ReconstructabilityClass,
}Expand description
Perceptual weight for media atoms.
Indicates the importance of a media unit for human perception.
Fields§
§emotional: f32Emotional importance (0.0 - 1.0)
presence: f32Presence importance (0.0 - 1.0)
continuity: f32Continuity importance (0.0 - 1.0)
class: ReconstructabilityClassReconstructability class
Implementations§
Source§impl PerceptualWeight
impl PerceptualWeight
Sourcepub fn new(
emotional: f32,
presence: f32,
continuity: f32,
class: ReconstructabilityClass,
) -> Self
pub fn new( emotional: f32, presence: f32, continuity: f32, class: ReconstructabilityClass, ) -> Self
Create a new perceptual weight
Sourcepub fn importance(&self) -> f32
pub fn importance(&self) -> f32
Calculate overall importance score
Trait Implementations§
Source§impl Clone for PerceptualWeight
impl Clone for PerceptualWeight
Source§fn clone(&self) -> PerceptualWeight
fn clone(&self) -> PerceptualWeight
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 PerceptualWeight
impl Debug for PerceptualWeight
Source§impl Default for PerceptualWeight
impl Default for PerceptualWeight
Source§impl PartialEq for PerceptualWeight
impl PartialEq for PerceptualWeight
impl Copy for PerceptualWeight
impl StructuralPartialEq for PerceptualWeight
Auto Trait Implementations§
impl Freeze for PerceptualWeight
impl RefUnwindSafe for PerceptualWeight
impl Send for PerceptualWeight
impl Sync for PerceptualWeight
impl Unpin for PerceptualWeight
impl UnwindSafe for PerceptualWeight
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