InputType
- Input class that the basis function operate uponpublic class ScalarBasisSet<InputType> extends AbstractCloneableSerializable implements Evaluator<InputType,Vector>, VectorOutputEvaluator<InputType,Vector>
Constructor and Description |
---|
ScalarBasisSet(java.util.Collection<? extends Evaluator<? super InputType,java.lang.Double>> basisFunctions)
Creates a new instance of ScalarBasisSet
|
ScalarBasisSet(ScalarBasisSet<InputType> other)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
Vector |
evaluate(InputType input)
Evaluates the function on the given input and returns the output.
|
java.util.Collection<? extends Evaluator<? super InputType,java.lang.Double>> |
getBasisFunctions()
Getter for basisFunctions
|
int |
getOutputDimensionality()
Gets the expected dimensionality of the output vector of the evaluator,
if it is known.
|
void |
setBasisFunctions(java.util.Collection<? extends Evaluator<? super InputType,java.lang.Double>> basisFunctions)
Setter for basisFunctions
|
clone
public ScalarBasisSet(java.util.Collection<? extends Evaluator<? super InputType,java.lang.Double>> basisFunctions)
basisFunctions
- Collection of scalar basis functions, where the ith function operates
on the ith element of the output Vectorpublic ScalarBasisSet(ScalarBasisSet<InputType> other)
other
- ScalarBasisSet to copypublic int getOutputDimensionality()
VectorOutputEvaluator
getOutputDimensionality
in interface VectorOutputEvaluator<InputType,Vector>
public Vector evaluate(InputType input)
Evaluator
public java.util.Collection<? extends Evaluator<? super InputType,java.lang.Double>> getBasisFunctions()
public void setBasisFunctions(java.util.Collection<? extends Evaluator<? super InputType,java.lang.Double>> basisFunctions)
basisFunctions
- Collection of scalar basis functions, where the ith function operates
on the ith element of the output Vector