Interface SplitPointCost<T extends SplitPointUnit>

  • Type Parameters:
    T - the type of split point unit
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface SplitPointCost<T extends SplitPointUnit>
    Provides a cost function for a split point.
    • Method Detail

      • getCost

        double getCost​(SplitPointDataSource<T,​?> units,
                       int index,
                       int limit)
        Returns the cost of breaking after the unit with the specified index.
        Parameters:
        units - the units
        index - the index of the breakpoint unit
        limit - the maximum length to consider
        Returns:
        returns the cost