Package com.graphhopper.matching
Class Distributions
java.lang.Object
com.graphhopper.matching.Distributions
Implements various probability distributions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublelogNormalDistribution(double sigma, double x) Use this function instead of Math.log(normalDistribution(sigma, x)) to avoid an arithmetic underflow for very small probabilities.
-
Constructor Details
-
Distributions
public Distributions()
-
-
Method Details
-
logNormalDistribution
public static double logNormalDistribution(double sigma, double x) Use this function instead of Math.log(normalDistribution(sigma, x)) to avoid an arithmetic underflow for very small probabilities.
-