Package org.ojalgo.function
Class ParameterFunction.FixedParameter<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.function.ParameterFunction.FixedParameter<N>
-
- All Implemented Interfaces:
java.util.function.DoubleUnaryOperator
,java.util.function.Function<N,N>
,java.util.function.UnaryOperator<N>
,BasicFunction
,UnaryFunction<N>
- Enclosing interface:
- ParameterFunction<N extends java.lang.Comparable<N>>
public static final class ParameterFunction.FixedParameter<N extends java.lang.Comparable<N>> extends java.lang.Object implements UnaryFunction<N>
A ParameterFunction with a set/fixed parameter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
-
-
Field Summary
Fields Modifier and Type Field Description private ParameterFunction<N>
myFunction
private int
myParameter
-
Constructor Summary
Constructors Modifier Constructor Description private
FixedParameter()
(package private)
FixedParameter(ParameterFunction<N> function, int param)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterFunction<N>
getFunction()
int
getParameter()
double
invoke(double arg)
float
invoke(float arg)
N
invoke(N arg)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ojalgo.function.UnaryFunction
andThen, apply, applyAsDouble, compose, invoke, invoke, invoke, invoke
-
-
-
-
Field Detail
-
myFunction
private final ParameterFunction<N extends java.lang.Comparable<N>> myFunction
-
myParameter
private final int myParameter
-
-
Constructor Detail
-
FixedParameter
private FixedParameter()
-
FixedParameter
FixedParameter(ParameterFunction<N> function, int param)
-
-
Method Detail
-
getFunction
public ParameterFunction<N> getFunction()
-
getParameter
public int getParameter()
-
invoke
public double invoke(double arg)
- Specified by:
invoke
in interfaceUnaryFunction<N extends java.lang.Comparable<N>>
-
invoke
public float invoke(float arg)
- Specified by:
invoke
in interfaceUnaryFunction<N extends java.lang.Comparable<N>>
-
-