pub struct ZscoreSeries { /* private fields */ }Expand description
Computes the z-score for each series within a group-by family. For each group at each timestamp, the output is (value - mean) / stddev, where mean and stddev are computed across all groups in the family at that timestamp, using the interpolation configuration to align values across groups. When stddev is zero at a timestamp (e.g., all groups have the same value), that data point is excluded from the output. If groupByTags is empty, all groups in the input series will be considered as a single family. This node only produces meaningful results when the input has a group by.
Implementations§
Source§impl ZscoreSeries
impl ZscoreSeries
Sourcepub fn builder() -> Builder<InputStage>
pub fn builder() -> Builder<InputStage>
Returns a new builder.
Source§impl ZscoreSeries
impl ZscoreSeries
Sourcepub fn new(input: NumericSeries) -> Self
pub fn new(input: NumericSeries) -> Self
Constructs a new instance of the type.
pub fn input(&self) -> &NumericSeries
Tags to group by for the normalization. If left empty, all groups in the input will be considered as a single family. Otherwise, inputs will be normalized separately across the groups specified by the tags.
Sourcepub fn interpolation_configuration(&self) -> Option<&InterpolationConfiguration>
pub fn interpolation_configuration(&self) -> Option<&InterpolationConfiguration>
Configuration for aligning values across groups at each timestamp. Defaults to forward fill interpolation with a 1s interpolation radius.
Trait Implementations§
Source§impl Clone for ZscoreSeries
impl Clone for ZscoreSeries
Source§fn clone(&self) -> ZscoreSeries
fn clone(&self) -> ZscoreSeries
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ZscoreSeries
impl Debug for ZscoreSeries
Source§impl<'de> Deserialize<'de> for ZscoreSeries
impl<'de> Deserialize<'de> for ZscoreSeries
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<ZscoreSeries> for Builder<Complete>
impl From<ZscoreSeries> for Builder<Complete>
Source§fn from(v: ZscoreSeries) -> Self
fn from(v: ZscoreSeries) -> Self
Source§impl Hash for ZscoreSeries
impl Hash for ZscoreSeries
Source§impl Ord for ZscoreSeries
impl Ord for ZscoreSeries
Source§impl PartialEq for ZscoreSeries
impl PartialEq for ZscoreSeries
Source§impl PartialOrd for ZscoreSeries
impl PartialOrd for ZscoreSeries
Source§impl Serialize for ZscoreSeries
impl Serialize for ZscoreSeries
impl Eq for ZscoreSeries
Auto Trait Implementations§
impl Freeze for ZscoreSeries
impl RefUnwindSafe for ZscoreSeries
impl Send for ZscoreSeries
impl Sync for ZscoreSeries
impl Unpin for ZscoreSeries
impl UnsafeUnpin for ZscoreSeries
impl UnwindSafe for ZscoreSeries
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request