pub struct TrendResult {
pub snapshot_count: usize,
pub pattern_entropy_slope: Option<f64>,
pub convention_drift_slope: Option<f64>,
pub coupling_slope: Option<f64>,
pub community_count_slope: Option<f64>,
}Expand description
Per-dimension trend data over a window of consecutive snapshots.
All delta fields are the slope (change per snapshot interval) of a linear
regression over the window, or None when there are fewer than two snapshots
to compare.
§Examples
use sdivi_snapshot::trend::compute_trend;
let result = compute_trend(&[], None);
assert_eq!(result.snapshot_count, 0);
assert!(result.pattern_entropy_slope.is_none());Fields§
§snapshot_count: usizeNumber of snapshots in the analysis window.
pattern_entropy_slope: Option<f64>Slope of pattern_entropy_delta across the window (nats / snapshot).
convention_drift_slope: Option<f64>Slope of convention_drift_delta across the window.
coupling_slope: Option<f64>Slope of coupling_delta across the window.
community_count_slope: Option<f64>Slope of community_count_delta across the window.
Trait Implementations§
Source§impl Clone for TrendResult
impl Clone for TrendResult
Source§fn clone(&self) -> TrendResult
fn clone(&self) -> TrendResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrendResult
impl Debug for TrendResult
Source§impl<'de> Deserialize<'de> for TrendResult
impl<'de> Deserialize<'de> for TrendResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrendResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrendResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TrendResult
impl PartialEq for TrendResult
Source§fn eq(&self, other: &TrendResult) -> bool
fn eq(&self, other: &TrendResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrendResult
impl Serialize for TrendResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TrendResult
Auto Trait Implementations§
impl Freeze for TrendResult
impl RefUnwindSafe for TrendResult
impl Send for TrendResult
impl Sync for TrendResult
impl Unpin for TrendResult
impl UnsafeUnpin for TrendResult
impl UnwindSafe for TrendResult
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