Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
648c9bc2
Commit
648c9bc2
authored
Nov 25, 2019
by
Daniel Lehmberg
Browse files
revert last commit: Check is in ScenarioChecker
parent
3482b45b
Pipeline
#182570
passed with stages
in 123 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereUtils/src/org/vadere/util/math/TruncatedNormalDistribution.java
View file @
648c9bc2
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment