@Shareable public final class IdentityClampingFunction extends java.lang.Object implements ClampingFunction, java.io.Serializable
Identity clamping function.
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
Clamp a value.
apply
in interface ClampingFunction
user
- The user ID.item
- The item ID.value
- The value to clamp.