Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,13 @@ protected float getTransitionWeight() {
}

/**
* @param maxTransitionWeight The max transition weight. Must be >0 and <1 (default=1)
* @param maxTransitionWeight The max transition weight. Must be >=0 and <=1 (default=1)
* @throws IllegalArgumentException If maxTransitionWeight is not between 0 and 1.
*/
public void setMaxTransitionWeight(double maxTransitionWeight) {
assert maxTransitionWeight >= 0 && maxTransitionWeight <= 1;
if (maxTransitionWeight < 0.0 || maxTransitionWeight > 1.0) {
throw new IllegalArgumentException("maxTransitionWeight must be between 0 and 1");
}

this.maxTransitionWeight = maxTransitionWeight;
}
Expand Down