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(Object o) |
double |
getHalfLife()
Get the half-life of the discount function.
|
int |
hashCode() |
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)
Discount
Compute the discount for a rank.