Commit 648c9bc2 authored by Daniel Lehmberg's avatar Daniel Lehmberg
Browse files

revert last commit: Check is in ScenarioChecker

parent 3482b45b
Pipeline #182570 passed with stages
in 123 minutes and 10 seconds
......@@ -16,9 +16,9 @@ public class TruncatedNormalDistribution extends NormalDistribution {
double max, int maxIterations) {
super(rng, mean, standardDeviation);
if (min < 0 || max <= 0 || max <= min){
// min == 0 does not make to much sense either, but we allow this case for pedestrians that do not move
throw new IllegalArgumentException("Parameters 'min' and 'max' must be non-negative and 'min < max'.");
if (max <= min){
// TODO: this check should actually go into the ScenarioChecker?
throw new IllegalArgumentException("Parameters 'min < max'.");
}
this.min = min;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment