| Constructor and Description |
|---|
ExponentialDiscount(double hl)
Construct an exponential discount.
|
| Modifier and Type | Method and Description |
|---|---|
double |
discount(int rank)
Compute the discount for a rank.
|
boolean |
equals(java.lang.Object o) |
double |
getHalfLife()
Get the half-life of the discount function.
|
int |
hashCode() |
java.lang.String |
toString() |
public ExponentialDiscount(double hl)
Construct an exponential discount.
hl - The half-life.public double getHalfLife()
Get the half-life of the discount function.
public double discount(int rank)
DiscountCompute the discount for a rank.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object