EvaluatedType
- Class type to evaluate, for example a "Vector" or "Evaluator"CostParametersType
- Class type that parameterizes the CostFunction, for example, a Collection of
InputOutputPairs. Usually the dataset we're interested in.@CodeReview(reviewer="Justin Basilico", date="2006-10-04", changesNeeded=false, comments="Interface looks fine.") public interface CostFunction<EvaluatedType,CostParametersType> extends Evaluator<EvaluatedType,java.lang.Double>, CloneableSerializable
Modifier and Type | Method and Description |
---|---|
CostFunction<EvaluatedType,CostParametersType> |
clone()
Creates a new clone (shallow copy) of this object.
|
java.lang.Double |
evaluate(EvaluatedType target)
Computes the cost of the given target.
|
CostParametersType |
getCostParameters()
Gets the parameters of the cost function.
|
void |
setCostParameters(CostParametersType costParameters)
Sets the parameters of the cost function used to evaluate the cost of
a target.
|
java.lang.Double evaluate(EvaluatedType target)
evaluate
in interface Evaluator<EvaluatedType,java.lang.Double>
target
- The object to evaluate.void setCostParameters(CostParametersType costParameters)
costParameters
- The parameters of the cost function.CostParametersType getCostParameters()
CostFunction<EvaluatedType,CostParametersType> clone()
CloneableSerializable
clone
in interface CloneableSerializable