All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.daisy.dotify.common.splitter.SplitPointCost Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package org.daisy.dotify.common.splitter;

/**
 * Provides a cost function for a split point.
 *
 * @param  the type of split point unit
 * @author Joel Håkansson
 */
@FunctionalInterface
public interface SplitPointCost {

    /**
     * Returns the cost of breaking after the unit with the specified index.
     *
     * @param units the units
     * @param index the index of the breakpoint unit
     * @param limit the maximum length to consider
     * @return returns the cost
     */
    public double getCost(SplitPointDataSource units, int index, int limit);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy