Package it.unimi.dsi.webgraph.algo
Class HyperBall.AbstractDiscountFunction
- java.lang.Object
-
- it.unimi.dsi.fastutil.ints.AbstractInt2DoubleFunction
-
- it.unimi.dsi.webgraph.algo.HyperBall.AbstractDiscountFunction
-
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<java.lang.Integer,java.lang.Double>
,it.unimi.dsi.fastutil.ints.Int2DoubleFunction
,java.io.Serializable
,java.util.function.Function<java.lang.Integer,java.lang.Double>
,java.util.function.IntToDoubleFunction
- Enclosing class:
- HyperBall
public abstract static class HyperBall.AbstractDiscountFunction extends it.unimi.dsi.fastutil.ints.AbstractInt2DoubleFunction
An abstract discount function is a facility to implement a discount function (so that only theInt2DoubleFunction.get(int)
method must be actually implemented).Note that by contract
Int2DoubleFunction.get(int)
will never be called with argument (i.e., distance) zero.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractDiscountFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(int key)
int
size()
-
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractInt2DoubleFunction
defaultReturnValue, defaultReturnValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.unimi.dsi.fastutil.ints.Int2DoubleFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsDouble, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKey, get, get, getOrDefault, getOrDefault, put, put, remove, remove
-
-