public class R1Projection extends AbstractRealScalarFunction
RealScalarFunction
from a vector-valued function RealVectorFunction
by
taking only one of its coordinate components in the vector output.
For example, suppose we have a \(R^n \rightarrow R^m\) function, \(f_1 = [y_1, y_2, y_3]'\).
We construct a \(R^n \rightarrow R\) function by taking its second coordinate.
That is, \(f_2 = y_2\).Function.EvaluationException
Constructor and Description |
---|
R1Projection(RealVectorFunction f,
int dimension)
Construct a \(R^n \rightarrow R\) projection from a \(R^n \rightarrow R^m\) function f.
|
Modifier and Type | Method and Description |
---|---|
Double |
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.
|
dimensionOfDomain, dimensionOfRange
public R1Projection(RealVectorFunction f, int dimension)
f
- a vector-valued functiondimension
- the dimension/coordinate of the f value to outputCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.