Changeset 15831 for branches/2904_CalculateImpacts/3.4/OnlineCalculators/OnlineMaxAbsoluteErrorCalculator.cs
- Timestamp:
- 03/08/18 10:44:51 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2904_CalculateImpacts/3.4/OnlineCalculators/OnlineMaxAbsoluteErrorCalculator.cs
r15583 r15831 29 29 private double mae; 30 30 private int n; 31 public double MaxAbsoluteError { 32 get { 31 public double MaxAbsoluteError 32 { 33 get 34 { 33 35 return n > 0 ? mae : 0.0; 34 36 } … … 51 53 #region IOnlineCalculator Members 52 54 private OnlineCalculatorError errorState; 53 public OnlineCalculatorError ErrorState { 55 public OnlineCalculatorError ErrorState 56 { 54 57 get { return errorState; } 55 58 } 56 public double Value { 59 public double Value 60 { 57 61 get { return MaxAbsoluteError; } 58 62 } … … 99 103 } 100 104 } 105 106 public double CalculateValue(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) { 107 return Calculate(originalValues, estimatedValues, out errorState); 108 } 101 109 } 102 110 }
Note: See TracChangeset
for help on using the changeset viewer.