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

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

The newest version!
package org.daisy.dotify.common.splitter;

/**
 * Provides a cost function for a split point.
 *  
 * @author Joel Håkansson
 * @param  the type of split point unit
 *
 */
@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 - 2025 Weber Informatics LLC | Privacy Policy