Class HyperBall.AbstractDiscountFunction

java.lang.Object
it.unimi.dsi.fastutil.ints.AbstractInt2DoubleFunction
it.unimi.dsi.webgraph.algo.HyperBall.AbstractDiscountFunction
All Implemented Interfaces:
Function<Integer,​Double>, Int2DoubleFunction, Serializable, Function<Integer,​Double>, IntToDoubleFunction
Enclosing class:
HyperBall

public abstract static class HyperBall.AbstractDiscountFunction
extends 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:
Serialized Form
  • Constructor Details

    • AbstractDiscountFunction

      public AbstractDiscountFunction()
  • Method Details

    • size

      public int size()
    • containsKey

      public boolean containsKey​(int key)