README

wcx789ll/moonsim/stats does not have a README file

#
Histogram

pub(all) struct Histogram {
name : String
count : Int
sum : Double
min_val : Double
max_val : Double
bin_width : Double
min_bin : Double
// private fields
}

#
Histogram::add

fn Histogram::add(self : Histogram, value : Double) -> Unit

#
Histogram::count

fn Histogram::count(self : Histogram) -> Int

#
Histogram::mean

fn Histogram::mean(self : Histogram) -> Double

#
Histogram::new

fn Histogram::new(name : String, num_bins : Int, min_bin : Double, max_bin : Double) -> Histogram

#
PercentileTracker

pub(all) struct PercentileTracker {
name : String
// private fields
}

#
PercentileTracker::count

fn PercentileTracker::count(self : PercentileTracker) -> Int

#
PercentileTracker::new

fn PercentileTracker::new(name : String) -> PercentileTracker

#
PercentileTracker::p50

fn PercentileTracker::p50(self : PercentileTracker) -> Double

#
PercentileTracker::p90

fn PercentileTracker::p90(self : PercentileTracker) -> Double

#
PercentileTracker::p95

fn PercentileTracker::p95(self : PercentileTracker) -> Double

#
PercentileTracker::p99

fn PercentileTracker::p99(self : PercentileTracker) -> Double

#
PercentileTracker::percentile

fn PercentileTracker::percentile(self : PercentileTracker, p : Double) -> Double

#
PercentileTracker::record

fn PercentileTracker::record(self : PercentileTracker, value : Double) -> Unit

#
RollingSummary

pub(all) struct RollingSummary {
name : String
window_size : Double
// private fields
}

#
RollingSummary::new

fn RollingSummary::new(name : String, window_size : Double) -> RollingSummary

#
RollingSummary::record

fn RollingSummary::record(self : RollingSummary, time : Double, value : Double) -> Unit

#
RollingSummary::rolling_mean

fn RollingSummary::rolling_mean(self : RollingSummary, now : Double) -> Double

#
SlaMonitor

pub(all) struct SlaMonitor {
name : String
threshold : Double
total : Int
violations : Int
}

#
SlaMonitor::new

fn SlaMonitor::new(name : String, threshold : Double) -> SlaMonitor

#
SlaMonitor::record

fn SlaMonitor::record(self : SlaMonitor, wait_time : Double) -> Bool

#
SlaMonitor::total

fn SlaMonitor::total(self : SlaMonitor) -> Int

#
SlaMonitor::violation_rate

fn SlaMonitor::violation_rate(self : SlaMonitor) -> Double

#
SlaMonitor::violations

fn SlaMonitor::violations(self : SlaMonitor) -> Int

#
ThroughputTracker

pub(all) struct ThroughputTracker {
name : String
count : Int
start_time : Double
last_time : Double
}

#
ThroughputTracker::new

fn ThroughputTracker::new(name : String, start_time : Double) -> ThroughputTracker

#
ThroughputTracker::rate

fn ThroughputTracker::rate(self : ThroughputTracker) -> Double

#
ThroughputTracker::record

fn ThroughputTracker::record(self : ThroughputTracker, time : Double, count_delta : Int) -> Unit

#
TimePoint

pub(all) struct TimePoint {
time : Double
value : Double
}

#
TimeWeightedSummary

pub(all) struct TimeWeightedSummary {
name : String
last_time : Double
last_value : Double
time_weighted_sum : Double
total_time : Double
min_value : Double
max_value : Double
}

#
TimeWeightedSummary::max

fn TimeWeightedSummary::max(self : TimeWeightedSummary) -> Double

#
TimeWeightedSummary::mean

fn TimeWeightedSummary::mean(self : TimeWeightedSummary) -> Double

#
TimeWeightedSummary::min

fn TimeWeightedSummary::min(self : TimeWeightedSummary) -> Double

#
TimeWeightedSummary::new

fn TimeWeightedSummary::new(name : String, initial_time : Double, initial_value : Double) -> TimeWeightedSummary

#
TimeWeightedSummary::total_time

fn TimeWeightedSummary::total_time(self : TimeWeightedSummary) -> Double

#
TimeWeightedSummary::update

fn TimeWeightedSummary::update(self : TimeWeightedSummary, current_time : Double, new_value : Double) -> Unit

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io