more features checks. setup improvements
This commit is contained in:
@@ -189,8 +189,12 @@ public sealed class DeltaIfPresentCalculator : IDeltaIfPresentCalculator
|
||||
var bestUncertainty = _uncertaintyCalculator.Calculate(bestSnapshot, effectiveWeights);
|
||||
var worstUncertainty = _uncertaintyCalculator.Calculate(worstSnapshot, effectiveWeights);
|
||||
|
||||
var maxScore = _trustAggregator.Aggregate(bestSnapshot, bestUncertainty, effectiveWeights);
|
||||
var minScore = _trustAggregator.Aggregate(worstSnapshot, worstUncertainty, effectiveWeights);
|
||||
var bestScore = _trustAggregator.Aggregate(bestSnapshot, bestUncertainty, effectiveWeights);
|
||||
var worstScore = _trustAggregator.Aggregate(worstSnapshot, worstUncertainty, effectiveWeights);
|
||||
|
||||
// Ensure correct ordering regardless of which scenario produces higher/lower scores
|
||||
var minScore = Math.Min(bestScore, worstScore);
|
||||
var maxScore = Math.Max(bestScore, worstScore);
|
||||
|
||||
// Calculate missing weight percentage
|
||||
var missingWeight = currentUncertainty.Gaps.Sum(g => g.Weight);
|
||||
|
||||
Reference in New Issue
Block a user