
stream.counter.DynamicFrequentItemModel Maven / Gradle / Ivy
package stream.counter;
import java.io.Serializable;
import java.util.Collection;
/**
*
* Interface which extends the {@link Counter} interface by an output method.
* This output method is intended for all stream counting algorithms, which
* return a collection of elements counted in the stream which exceeded a given
* frequency threshold.
*
*
*
* There are two versions of the threshold stream counting interface. In the
* {@link StaticFrequentItemModel} interface the user can specify the threshold
* on object instantiation. In this version, the
* {@link DynamicFrequentItemModel} you have to specify the threshold on method
* invokation.
*
*
* @author Marcin Skirzynski, Benedikt Kulmann
*
* @param
* Generic class of the elements which should be counted
*/
public interface DynamicFrequentItemModel extends
Counter {
/**
*
* Returns all elements counted in the stream which exceed the specified
* threshold.
*
*
* @param minSupport
* frequency threshold for all returned elements. Has to be
* between 0 and 1
* @return all elements which exceed the threshold
*/
public Collection getFrequentItems(double minSupport);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy