| 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(java.lang.Object o) |
double |
getLogBase()
Get the log base from the discount.
|
int |
hashCode() |
java.lang.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)
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