public static class Probability.ReactionProbability extends Object implements Probability
factor / max(l1,l2)if
l1 + l2 > oneToLength
, else 1.Probability.Constant, Probability.ReactionProbability
Constructor and Description |
---|
ReactionProbability(double factor,
int oneToLength) |
Modifier and Type | Method and Description |
---|---|
double |
getProb(int l1,
int l2)
Gets the probability depending on two integers.
|
public double getProb(int l1, int l2)
Probability
getProb
in interface Probability
l1
- interger 1l2
- integer 2Copyright © 2007–2021. All rights reserved.