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<Integer,
,Double> it.unimi.dsi.fastutil.ints.Int2DoubleFunction
,Serializable
,Function<Integer,
,Double> 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
the
Int2DoubleFunction.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:
-
Field Summary
Fields inherited from class it.unimi.dsi.fastutil.ints.AbstractInt2DoubleFunction
defRetValue
-
Constructor Summary
Constructors -
Method Summary
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.Function
apply, clear
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
-
Constructor Details
-
AbstractDiscountFunction
public AbstractDiscountFunction()
-
-
Method Details
-
size
public int size() -
containsKey
public boolean containsKey(int key)
-