public class ExponentialDiscountModel extends Object implements RankingDiscountModel
Constructor and Description |
---|
ExponentialDiscountModel(double base)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
disc(int k)
Discount to be applied at a given position.
|
public ExponentialDiscountModel(double base)
base
- base of the exponentpublic double disc(int k)
disc
in interface RankingDiscountModel
k
- position in the recommendation list starting from 0Copyright © 2016. All rights reserved.