Streaming telemetry statistics and change detection for MoonBit.
moon add cn-wn/moonsignalkit///|
test {
let monitor = TimestampMonitor::new(10)
let _first = monitor.observe(Sample::new(100, 1.0))
let observation = monitor.observe(Sample::new(115, 1.0))
assert_true(observation.is_gap)
}pub(all) struct ChangePoint {
sample : Sample
direction : ChangeDirection
magnitude : Double
observation : Int
} derive(Debug)pub(all) struct CusumDetector {
target : Double
drift : Double
threshold : Double
positive_sum : Double
negative_sum : Double
observations : Int
} derive(Debug)pub(all) struct OnlineMoments {
count : Int
mean : Double
m2 : Double
min : Double
max : Double
} derive(Debug)pub(all) struct Summary {
count : Int
min : Double
max : Double
mean : Double
range : Double
variance : Double
std_dev : Double
} derive(Debug)Streaming telemetry statistics and change detection for MoonBit.