Skip to content

Commit 9e535b0

Browse files
committed
add default sensitivity in the builder if no values were added
1 parent 81ac612 commit 9e535b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

slider/src/main/java/io/monstarlab/mosaic/slider/SensitivityDistribution.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public class SensitivityDistribution private constructor(
7171
}
7272

7373
public fun build(): SensitivityDistribution {
74+
if (equationRangeStartMap.isEmpty()) {
75+
add(1f, 0f)
76+
}
7477
return SensitivityDistribution(equationRangeStartMap)
7578
}
7679
}

0 commit comments

Comments
 (0)