From df37c3e0d572ff3b4b4de3e9919402e8e0ccf971 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Fri, 14 Jul 2023 10:55:02 -0400 Subject: Parameterize Percentile in RPM Calculations Make the percentile used by RPM calculations user-controlled. Note: A percentile-based calculation is not part of the spec. This is an optional feature. Signed-off-by: Will Hawkins --- constants/constants.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'constants/constants.go') diff --git a/constants/constants.go b/constants/constants.go index 7a8d562..fdfd1f2 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -23,16 +23,6 @@ var ( // saturate the network. AdditiveNumberOfLoadGeneratingConnections uint64 = 1 - // The number of previous instantaneous measurements to consider when generating the so-called - // instantaneous moving averages of a measurement. - InstantaneousThroughputMeasurementCount uint64 = 4 - InstantaneousProbeMeasurementCount uint64 = 4 - // The number of instantaneous moving averages to consider when determining stability. - InstantaneousMovingAverageStabilityCount uint64 = 4 - // The standard deviation cutoff used to determine stability among the K preceding moving averages - // of a measurement (as a percentage of the mean). - StabilityStandardDeviation float64 = 5.0 - // The amount of time that the client will cooldown if it is in debug mode. CooldownPeriod time.Duration = 4 * time.Second @@ -56,6 +46,7 @@ type SpecParametersCliOptions struct { Mnp int Mps int Ptc float64 + P int } -var SpecParameterCliOptionsDefaults = SpecParametersCliOptions{Mad: 4, Id: 1, Tmp: 5, Sdt: 5.0, Mnp: 16, Mps: 100, Ptc: 0.05} +var SpecParameterCliOptionsDefaults = SpecParametersCliOptions{Mad: 4, Id: 1, Tmp: 5, Sdt: 5.0, Mnp: 16, Mps: 100, Ptc: 0.05, P: 90} -- cgit v1.2.3