summaryrefslogtreecommitdiff
path: root/constants/constants.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2023-07-14 10:55:02 -0400
committerWill Hawkins <[email protected]>2023-07-14 10:58:51 -0400
commitdf37c3e0d572ff3b4b4de3e9919402e8e0ccf971 (patch)
tree62e35137fa3d233f5506804775b6c71e728e71c3 /constants/constants.go
parent399eda676f7889accf72231c6696b89de7ea3fae (diff)
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 <[email protected]>
Diffstat (limited to 'constants/constants.go')
-rw-r--r--constants/constants.go13
1 files changed, 2 insertions, 11 deletions
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}