Skip to content

Commit 0fea356

Browse files
authored
Dam Cats sum to total eqad mean (#1316)
Addresses an issue where mean EQAD, when separated by damage category, wasn't summing up exactly to the overall calculated mean.
1 parent 5ce66c1 commit 0fea356

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HEC.FDA.ViewModel/Alternatives/Results/BatchCompute/AlternativeDamCatRowItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static List<AlternativeDamCatRowItem> CreateAlternativeDamCatRowItems(Alt
5757
foreach(string assetCat in assetCats)
5858
{
5959
Empirical dist = altElem.Results.GetEqadDistribution(impactAreaID, damCat, assetCat);
60-
double mean = Math.Round(dist.Mean, 2);
60+
double mean = Math.Round(dist.SampleMean, 2);
6161
AlternativeDamCatRowItem row = new(Name, impactAreaIdToName[impactAreaID], assetCat, damCat, mean);
6262
rowItems.Add(row);
6363
}

0 commit comments

Comments
 (0)