org.ojalgo.function
Class PreconfiguredBinaryFunction<N extends Number>

java.lang.Object
  extended by org.ojalgo.function.PreconfiguredBinaryFunction<N>
All Implemented Interfaces:
Function<N>, UnaryFunction<N>

public final class PreconfiguredBinaryFunction<N extends Number>
extends Object
implements UnaryFunction<N>

A BinaryFunction with a set second argument.

Author:
apete

Constructor Summary
PreconfiguredBinaryFunction(BinaryFunction<N> aFunc, N aSecondArg)
           
 
Method Summary
 double invoke(double aFirstArg)
           
 N invoke(N aFirstArg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreconfiguredBinaryFunction

public PreconfiguredBinaryFunction(BinaryFunction<N> aFunc,
                                   N aSecondArg)
Method Detail

invoke

public double invoke(double aFirstArg)
Specified by:
invoke in interface UnaryFunction<N extends Number>

invoke

public N invoke(N aFirstArg)
Specified by:
invoke in interface UnaryFunction<N extends Number>