com.motlin.risk.odds
Class Decimal

java.lang.Object
  extended by com.motlin.risk.odds.Decimal
All Implemented Interfaces:
Probability<Decimal>

public final class Decimal
extends Object
implements Probability<Decimal>


Constructor Summary
Decimal(double value)
           
Decimal(long numerator, long denominator)
           
 
Method Summary
 Decimal add(Decimal additionalProbability)
           
 double getValue()
           
 boolean greaterThan(Decimal other)
           
 Decimal multiply(Decimal multiplicand)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Decimal

public Decimal(long numerator,
               long denominator)

Decimal

public Decimal(double value)
Method Detail

add

public Decimal add(Decimal additionalProbability)
Specified by:
add in interface Probability<Decimal>

multiply

public Decimal multiply(Decimal multiplicand)
Specified by:
multiply in interface Probability<Decimal>

greaterThan

public boolean greaterThan(Decimal other)
Specified by:
greaterThan in interface Probability<Decimal>

toString

public String toString()
Overrides:
toString in class Object

getValue

public double getValue()