Fixed requested value LVEWAvg was not found, improved resiliency

This commit is contained in:
2025-12-14 14:40:00 +01:00
parent da603746e8
commit eb6f7ef524
2 changed files with 24 additions and 16 deletions

View File

@@ -29,7 +29,7 @@ public enum ProbMethodEnum
GeometricMean,
EVEWAvg,
HVEWAvg,
LVEWavg,
LVEWAvg,
DictionaryWeightedAverage
}
@@ -49,7 +49,7 @@ public static class Probmethods
[ProbMethodEnum.GeometricMean] = GeometricMean,
[ProbMethodEnum.EVEWAvg] = ExtremeValuesEmphasisWeightedAverage,
[ProbMethodEnum.HVEWAvg] = HighValueEmphasisWeightedAverage,
[ProbMethodEnum.LVEWavg] = LowValueEmphasisWeightedAverage,
[ProbMethodEnum.LVEWAvg] = LowValueEmphasisWeightedAverage,
[ProbMethodEnum.DictionaryWeightedAverage] = DictionaryWeightedAverage
};
}
@@ -66,7 +66,6 @@ public static class Probmethods
methodName = name[..colonIndex];
jsonArg = name[(colonIndex + 1)..];
}
ProbMethodEnum probMethodEnum = (ProbMethodEnum)Enum.Parse(
typeof(ProbMethodEnum),
methodName