@Shareable public final class IdentityClampingFunction extends Object implements ClampingFunction, Serializable
Constructor and Description |
---|
IdentityClampingFunction() |
Modifier and Type | Method and Description |
---|---|
double |
apply(long user,
long item,
double value)
Clamp a value.
|
public double apply(long user, long item, double value)
ClampingFunction
apply
in interface ClampingFunction
user
- The user ID.item
- The item ID.value
- The value to clamp.