WaveletDictionary
ferro_
wave
0.17.1
Wavelet
Dictionary
Associated Constants
MAX_SIGNAL_LENGTH
Methods
max_scale
new
num_wavelets
Trait Implementations
Dictionary<f64>
Auto Trait Implementations
Freeze
RefUnwindSafe
Send
Sync
Unpin
UnwindSafe
Blanket Implementations
Any
Borrow<T>
BorrowMut<T>
CastableFrom<ST, Initialized, Initialized>
CastableFrom<ST, Uninit, Uninit>
From<T>
Into<U>
IntoEither
Pointable
Read<Exclusive, BecauseExclusive>
Same
SupersetOf<SS>
TryFrom<U>
TryInto<U>
VZip<V>
In ferro_
wave::
decomposition::
matching_
pursuit
ferro_wave
::
decomposition
::
matching_pursuit
Struct
Wavelet
Dictionary
Copy item path
pub struct WaveletDictionary {
/* private fields */
}
Implementations
§
§
impl
WaveletDictionary
pub const
MAX_SIGNAL_LENGTH
:
usize
= 4096
pub fn
new
( wavelets:
Vec
<
Box
<dyn
Wavelet
>>, max_scale:
usize
, signal_length:
usize
, ) ->
Result
<Self>
pub fn
num_wavelets
(&self) ->
usize
pub fn
max_scale
(&self) ->
usize
Trait Implementations
§
§
impl
Dictionary
<
f64
> for
WaveletDictionary
§
fn
get_atom
(&self, index: &
AtomIndex
) ->
Result
<
Signal
<
f64
>>
§
fn
get_atom_data
(&self, index: &
AtomIndex
) ->
Result
<&[
f64
]>
§
fn
find_best_match
(&self, signal: &
Signal
<
f64
>) ->
Result
<(
AtomIndex
,
f64
)>
§
fn
find_best_match_excluding
( &self, signal: &
Signal
<
f64
>, excluded: &
HashSet
<
AtomIndex
>, ) ->
Result
<
Option
<(
AtomIndex
,
f64
)>>
§
fn
size
(&self) ->
usize
§
fn
signal_length
(&self) ->
usize
Auto Trait Implementations
§
§
impl
Freeze
for
WaveletDictionary
§
impl
RefUnwindSafe
for
WaveletDictionary
§
impl
Send
for
WaveletDictionary
§
impl
Sync
for
WaveletDictionary
§
impl
Unpin
for
WaveletDictionary
§
impl
UnwindSafe
for
WaveletDictionary
Blanket Implementations
§
§
impl<T>
Any
for T
where T: 'static + ?
Sized
,
§
fn
type_id
(&self) ->
TypeId
§
impl<T>
Borrow
<T> for T
where T: ?
Sized
,
§
fn
borrow
(&self) ->
&T
§
impl<T>
BorrowMut
<T> for T
where T: ?
Sized
,
§
fn
borrow_mut
(&mut self) ->
&mut T
§
impl<T>
From
<T> for T
§
fn
from
(t: T) -> T
§
impl<T, U>
Into
<U> for T
where U:
From
<T>,
§
fn
into
(self) -> U
§
impl<T>
IntoEither
for T
§
fn
into_either
(self, into_left:
bool
) ->
Either
<Self, Self>
§
fn
into_either_with
<F>(self, into_left: F) ->
Either
<Self, Self>
where F:
FnOnce
(&Self) ->
bool
,
§
impl<T> Pointable for T
§
const
ALIGN
:
usize
§
type
Init
= T
§
unsafe fn
init
(init: <T as Pointable>::Init) ->
usize
§
unsafe fn
deref
<'a>(ptr:
usize
) ->
&'a T
§
unsafe fn
deref_mut
<'a>(ptr:
usize
) ->
&'a mut T
§
unsafe fn
drop
(ptr:
usize
)
§
impl<T>
Same
for T
§
type
Output
= T
§
impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,
§
fn
to_subset
(&self) ->
Option
<SS>
§
fn
is_in_subset
(&self) ->
bool
§
fn
to_subset_unchecked
(&self) -> SS
§
fn
from_subset
(element:
&SS
) -> SP
§
impl<T, U>
TryFrom
<U> for T
where U:
Into
<T>,
§
type
Error
=
Infallible
§
fn
try_from
(value: U) ->
Result
<T, <T as
TryFrom
<U>>::
Error
>
§
impl<T, U>
TryInto
<U> for T
where U:
TryFrom
<T>,
§
type
Error
= <U as
TryFrom
<T>>::
Error
§
fn
try_into
(self) ->
Result
<U, <U as
TryFrom
<T>>::
Error
>
§
impl<V, T> VZip<V> for T
where V: MultiLane<T>,
§
fn
vzip
(self) -> V
§
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?
Sized
, DT: ?
Sized
,
§
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?
Sized
, DT: ?
Sized
,
§
impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?
Sized
,