This commit is contained in:
NunoSempere 2022-06-19 21:19:19 -04:00
parent 5863db132b
commit d7b097a46e

View File

@ -98,9 +98,10 @@ export function aggregatePathsThroughMixtureOfMeans({
(path) => path.expectedRelativeValue (path) => path.expectedRelativeValue
); );
let expectedRelativeValuesFiltered; let expectedRelativeValuesFiltered = expectedRelativeValues;
if (!DONT_EXCLUDE_INFINITIES_AND_NANS) { if (!DONT_EXCLUDE_INFINITIES_AND_NANS) {
expectedRelativeValuesFiltered expectedRelativeValuesFiltered = expectedRelativeValues
.filter((x) => x != undefined) .filter((x) => x != undefined)
.filter((x) => !isNaN(x)) .filter((x) => !isNaN(x))
.filter((x) => isFinite(x)) .filter((x) => isFinite(x))