Constructor and Description |
---|
LogDiscount(double base)
Construct a log discount.
|
Modifier and Type | Method and Description |
---|---|
double |
discount(int rank)
Compute the discount for a rank.
|
boolean |
equals(Object o) |
double |
getLogBase()
Get the log base from the discount.
|
int |
hashCode() |
String |
toString() |
public LogDiscount(double base)
Construct a log discount.
base
- The discount base.public double getLogBase()
Get the log base from the discount.
public double discount(int rank)
Discount
Compute the discount for a rank.