InputType
- The type of input the ensemble can take. Passed to each ensemble
member to produce an output.MemberType
- The type of members of this ensemble.public class AveragingEnsemble<InputType,MemberType extends Evaluator<? super InputType,? extends java.lang.Number>> extends AbstractUnweightedEnsemble<MemberType> implements Regressor<InputType>
members
Constructor and Description |
---|
AveragingEnsemble()
Creates a new, empty
AdditiveEnsemble . |
AveragingEnsemble(java.util.List<MemberType> members)
Creates a new
AdditiveEnsemble with the given |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
evaluate(InputType input)
Returns the result of calling
evaluateAsDouble . |
double |
evaluateAsDouble(InputType input)
Evaluates the scalar function as a double.
|
add, clone, getMemberCount, getMembers, setMembers
public AveragingEnsemble()
AdditiveEnsemble
.public AveragingEnsemble(java.util.List<MemberType> members)
AdditiveEnsemble
with the givenmembers
- The list of ensemble members.public java.lang.Double evaluate(InputType input)
ScalarFunction
evaluateAsDouble
.public double evaluateAsDouble(InputType input)
ScalarFunction
evaluateAsDouble
in interface ScalarFunction<InputType>
input
- The input value.