diff options
| author | Will Hawkins <[email protected]> | 2024-01-09 00:31:18 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-09 00:31:18 -0500 |
| commit | fe989ebcdd5681e85a184791f42ebf4a498f00c9 (patch) | |
| tree | 70b89ed7434fabf6651ea8fce2e331979277a0d3 | |
| parent | 044535862f1f4c4bae00efaade33f3a59e9234d6 (diff) | |
| parent | c5e0bce882b049718692fbc5e43e01a3cdfb1f01 (diff) | |
Merge pull request #66 from network-quality/working_conditions_relabel
Relabel Working-Conditions Effect
| -rw-r--r-- | networkQuality.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networkQuality.go b/networkQuality.go index f0b981c..355e1b3 100644 --- a/networkQuality.go +++ b/networkQuality.go @@ -1196,11 +1196,11 @@ func main() { if baselineRpm == nil { fmt.Printf("User requested relative RPM calculation but an unloaded RPM was not calculated.") } else { - relativeRpmFactorP := utilities.AbsPercentDifference(result.PNRpm, baselineRpm.PNRpm) - relativeRpmFactorTM := utilities.AbsPercentDifference(result.MeanRpm, baselineRpm.MeanRpm) - fmt.Printf("Working Conditions RPM Effect: %5.0f%% (P%d)\n", + relativeRpmFactorP := (result.PNRpm / baselineRpm.PNRpm) * 100.0 + relativeRpmFactorTM := (result.MeanRpm / baselineRpm.MeanRpm) * 100.0 + fmt.Printf("Working-Conditions Effect: Final RPM is %5.0f%% of baseline RPM (P%d)\n", relativeRpmFactorP, specParameters.Percentile) - fmt.Printf("Working Conditions RPM Effect: %5.0f%% (Single-Sided %v%% Trimmed Mean)\n", + fmt.Printf("Working-Conditions Effect: Final RPM is %5.0f%% of baseline RPM (Single-Sided %v%% Trimmed Mean)\n", relativeRpmFactorTM, specParameters.TrimmedMeanPct) } } |
