package hep.aida.tdouble.bin;

/**
 * Interface that represents a function object: a function that takes two bins
 * as arguments and returns a single value.
 */
public interface DoubleBinFunction1D {
    /**
     * Applies a function to one bin argument.
     * 
     * @param x
     *            the argument passed to the function.
     * @return the result of the function.
     */
    abstract public double apply(DynamicDoubleBin1D x);

    /**
     * Returns the name of this function.
     * 
     * @return the name of this function.
     */
    abstract public String name();
}

 

Ads help maintain this website.