pub struct HardySpaceAtom {
pub lo: usize,
pub hi: usize,
pub values: Vec<f64>,
}Expand description
A discrete H¹ atom checker over a finite signal.
An H¹-atom supported on an interval I = [lo, hi] satisfies:
- supp(a) ⊆ I
- ‖a‖_{L∞} ≤ 1/|I|
- ∫ a = 0 (zero-mean / cancellation condition)
Fields§
§lo: usizeSupport interval [lo, hi] (index range).
hi: usizeSupport interval hi (inclusive).
values: Vec<f64>Values of the atom (length = full signal length; zero outside support).
Implementations§
Source§impl HardySpaceAtom
impl HardySpaceAtom
Sourcepub fn new(lo: usize, hi: usize, values: Vec<f64>) -> Self
pub fn new(lo: usize, hi: usize, values: Vec<f64>) -> Self
Create a new H¹ atom with the given support and values.
Sourcepub fn support_length(&self) -> usize
pub fn support_length(&self) -> usize
Length of the support interval.
Sourcepub fn has_compact_support(&self) -> bool
pub fn has_compact_support(&self) -> bool
Check that all values outside [lo, hi] are zero.
Sourcepub fn satisfies_linfty_bound(&self) -> bool
pub fn satisfies_linfty_bound(&self) -> bool
Check the L∞ bound: ‖a‖_{L∞} ≤ 1/|I|.
Sourcepub fn has_zero_mean(&self) -> bool
pub fn has_zero_mean(&self) -> bool
Check the cancellation condition: ∫ a = 0.
Sourcepub fn is_valid_atom(&self) -> bool
pub fn is_valid_atom(&self) -> bool
Verify all three H¹ atom conditions.
Trait Implementations§
Source§impl Clone for HardySpaceAtom
impl Clone for HardySpaceAtom
Source§fn clone(&self) -> HardySpaceAtom
fn clone(&self) -> HardySpaceAtom
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 moreAuto Trait Implementations§
impl Freeze for HardySpaceAtom
impl RefUnwindSafe for HardySpaceAtom
impl Send for HardySpaceAtom
impl Sync for HardySpaceAtom
impl Unpin for HardySpaceAtom
impl UnsafeUnpin for HardySpaceAtom
impl UnwindSafe for HardySpaceAtom
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