Struct WptBandEnergyResult
#[non_exhaustive]pub struct WptBandEnergyResult {
pub bands: Vec<WptBandSummary>,
pub dominant_band: WptBandSummary,
pub energy_distribution_pct: Vec<f64>,
pub total_energy: f64,
pub selection: WptBandSelection,
pub spectral_entropy: f64,
pub normalized_entropy: f64,
}Expand description
Productized WPT band-energy result.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bands: Vec<WptBandSummary>Per-band summaries in canonical (level, band_index) order.
dominant_band: WptBandSummaryArgmax of bands by energy_share_pct.
energy_distribution_pct: Vec<f64>Normalised energy distribution aligned with bands (sums to 100.0).
total_energy: f64Sum of band energies before normalisation.
selection: WptBandSelectionSelection strategy that produced the leaf set.
spectral_entropy: f64Raw Shannon spectral entropy of energy_distribution_pct in nats
([0, ln K], K = number of bands). Computed by the crate-internal spectral_entropy helper.
Defaults to 0.0 when deserialising pre-existing payloads that predate this field.
normalized_entropy: f64Normalised spectral entropy H / ln K ∈ [0, 1]: a regime-instability
indicator. Near 0 = energy concentrated in one dominant scale (stable
regime); near 1 = diffuse, fragmenting spectral structure (unstable
regime). Naicker (2026, SSRN 6677659) §2.3.3; Shannon (1948).
Implementations§
§impl WptBandEnergyResult
impl WptBandEnergyResult
Trait Implementations§
§impl Clone for WptBandEnergyResult
impl Clone for WptBandEnergyResult
§fn clone(&self) -> WptBandEnergyResult
fn clone(&self) -> WptBandEnergyResult
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for WptBandEnergyResult
impl Debug for WptBandEnergyResult
§impl PartialEq for WptBandEnergyResult
impl PartialEq for WptBandEnergyResult
impl StructuralPartialEq for WptBandEnergyResult
Auto Trait Implementations§
impl Freeze for WptBandEnergyResult
impl RefUnwindSafe for WptBandEnergyResult
impl Send for WptBandEnergyResult
impl Sync for WptBandEnergyResult
impl Unpin for WptBandEnergyResult
impl UnwindSafe for WptBandEnergyResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> IntoEither for T
impl<T> IntoEither for T
§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 more§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.