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
public class R1Projection extends AbstractRealScalarFunction
Projection creates a real-valued functionRealScalarFunction
from a vector-valued functionRealVectorFunction
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
Constructors Constructor Description R1Projection(RealVectorFunction f, int dimension)
Construct a \(R^n \rightarrow R\) projection from a \(R^n \rightarrow R^m\) function f.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.-
Methods inherited from class dev.nm.analysis.function.rn2r1.AbstractRealScalarFunction
dimensionOfDomain, dimensionOfRange
-
-
-
-
Constructor Detail
-
R1Projection
public R1Projection(RealVectorFunction f, int dimension)
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
-
-