public abstract class AbstractRealScalarFunction extends Object implements RealScalarFunction
Function.dimensionOfRange() by always
returning 1, and Function.dimensionOfDomain() by returning the input argument
for the dimension of domain.Function.EvaluationException| Constructor and Description |
|---|
AbstractRealScalarFunction(int domainDimension)
Construct an instance with the dimension of the domain.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimensionOfDomain()
Get the number of variables the function has.
|
int |
dimensionOfRange()
Get the dimension of the range space of the function.
|
public AbstractRealScalarFunction(int domainDimension)
domainDimension - the dimension of the domainpublic final int dimensionOfDomain()
FunctiondimensionOfDomain in interface Function<Vector,Double>public final int dimensionOfRange()
FunctiondimensionOfRange in interface Function<Vector,Double>Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.