mikera.randomz
Class Probabilities
- java.lang.Object
-
- mikera.randomz.Probabilities
-
public class Probabilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description Probabilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublelogProbabilityChance(double lp0, double lp1)Calculate chance of lp0 being chosen vs lp1 both expressed in log probabilities
-
-
-
Method Detail
-
logProbabilityChance
public static double logProbabilityChance(double lp0, double lp1)Calculate chance of lp0 being chosen vs lp1 both expressed in log probabilities- Parameters:
lp0- log probability of outcome 0lp1- log probability of outcome 1- Returns:
- Chance of outcome 0 vs. outcome 1
-
-
DMelt 3.0 © DataMelt by jWork.ORG