-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RunningAverage: deprecate MedianMeanRunningAverage and replace its uses
Replace all uses of MedianMeanRunningAverage with TrivialRunningAverage which does not eat an unbounded amount of RAM. This class was only used for debug purposes under the logMINOR flag. Having the median value in addition to mean value does likely not warrant the additional RAM and CPU consumption. Deprecate the class so that it can eventually be removed.
- Loading branch information
Showing
4 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,9 @@ | |
* (Also uses CPU time O(N log N) with the number of reports in currentValue()). | ||
* | ||
* @author Matthew Toseland <[email protected]> (0xE43DA450) | ||
* @deprecated may use excessive RAM and CPU, see warning | ||
*/ | ||
@Deprecated | ||
public final class MedianMeanRunningAverage implements RunningAverage, Cloneable { | ||
|
||
private final ArrayList<Double> reports = new ArrayList<>(); | ||
|