Expand description
Statistical utilities for analyzers
This module provides common statistical functions used by analyzers, including percentile calculation, moving averages, anomaly detection, etc.
Structs§
- Circular
Buffer - Circular buffer for maintaining a sliding window of values
- Exponential
Moving Average - Exponential Moving Average calculator
- Linear
Trend - Linear regression to find trend
- Simple
Moving Average - Simple Moving Average calculator
Functions§
- calculate_
iqr - Calculate interquartile range (IQR)
- calculate_
linear_ trend - Calculate linear trend from time series data
- calculate_
percentiles - Calculate percentiles from a dataset
- calculate_
rate - Calculate rate (events per time unit)
- is_
outlier_ iqr - Check if a value is an outlier using IQR method
- is_
outlier_ zscore - Check if a value is an outlier using z-score method
- mean
- Calculate mean of a dataset
- percentage_
change - Calculate percentage change
- std_dev
- Calculate standard deviation of a dataset
- z_score
- Calculate z-score for a value