Package dev.nm.analysis.function.rn2r1
Class R1Projection
java.lang.Object
dev.nm.analysis.function.rn2r1.AbstractRealScalarFunction
dev.nm.analysis.function.rn2r1.R1Projection
- All Implemented Interfaces:
Function<Vector,
,Double> RealScalarFunction
Projection creates a real-valued function
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\).-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.nm.analysis.function.Function
Function.EvaluationException
-
Constructor Summary
ConstructorsConstructorDescriptionR1Projection
(RealVectorFunction f, int dimension) Construct a \(R^n \rightarrow R\) projection from a \(R^n \rightarrow R^m\) function f. -
Method Summary
Methods inherited from class dev.nm.analysis.function.rn2r1.AbstractRealScalarFunction
dimensionOfDomain, dimensionOfRange
-
Constructor Details
-
R1Projection
Construct a \(R^n \rightarrow R\) projection from a \(R^n \rightarrow R^m\) function f.- Parameters:
f
- a vector-valued functiondimension
- the dimension/coordinate of the f value to output
-
-
Method Details
-
evaluate
Description copied from interface:Function
Evaluate the function f at x, where x is from the domain.- Parameters:
x
- x- Returns:
- f(x)
-