public interface BinaryFunction<N extends Number> extends BasicFunction, BinaryOperator<N>, DoubleBinaryOperator
Modifier and Type | Interface and Description |
---|---|
static class |
BinaryFunction.FixedFirst<N extends Number>
A BinaryFunction with a set/fixed first argument.
|
static class |
BinaryFunction.FixedSecond<N extends Number>
A BinaryFunction with a set/fixed second argument.
|
BasicFunction.Differentiable<N extends Number,F extends BasicFunction>, BasicFunction.Integratable<N extends Number,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
Modifier and Type | Method and Description |
---|---|
default BinaryFunction<N> |
andThen(UnaryFunction<N> after) |
default N |
apply(N arg1,
N arg2) |
default double |
applyAsDouble(double arg1,
double arg2) |
default UnaryFunction<N> |
by(double arg2)
To allow syntax like
array.modifyAll(DIVIDE.by(3.0)); |
default UnaryFunction<N> |
by(N arg2)
To allow syntax like
array.modifyAll(DIVIDE.by(3.0)); |
default UnaryFunction<N> |
first(double arg1) |
default UnaryFunction<N> |
first(N arg1)
Turns this binary function into a unary function with the first argument fixed/locked to the specified
value.
|
double |
invoke(double arg1,
double arg2) |
N |
invoke(N arg1,
N arg2) |
default UnaryFunction<N> |
second(double arg2) |
default UnaryFunction<N> |
second(N arg2)
Turns this binary function into a unary function with the second argument fixed/locked to the specified
value.
|
maxBy, minBy
andThen
default BinaryFunction<N> andThen(UnaryFunction<N> after)
default N apply(N arg1, N arg2)
apply
in interface BiFunction<N extends Number,N extends Number,N extends Number>
BiFunction.apply(java.lang.Object, java.lang.Object)
default double applyAsDouble(double arg1, double arg2)
applyAsDouble
in interface DoubleBinaryOperator
DoubleBinaryOperator.applyAsDouble(double, double)
default UnaryFunction<N> by(double arg2)
array.modifyAll(DIVIDE.by(3.0));
second(double)
default UnaryFunction<N> by(N arg2)
array.modifyAll(DIVIDE.by(3.0));
second(double)
default UnaryFunction<N> first(double arg1)
first(Number)
default UnaryFunction<N> first(N arg1)
arg1
- The first argument of the binary function.double invoke(double arg1, double arg2)
default UnaryFunction<N> second(double arg2)
second(Number)
default UnaryFunction<N> second(N arg2)
arg2
- The second argument of the binary function.Copyright © 2019 Optimatika. All rights reserved.