public static class WeightingFunction.linear extends Object implements WeightFunc
| Constructor and Description |
|---|
linear() |
| Modifier and Type | Method and Description |
|---|---|
double |
cost(double a,
double b)
Cost computation: a simple absolute value of a subtraction.
|
void |
setParam(String val)
Optional argument setting.
|
String |
whoAmI()
Returns the string definition for this weight function.
|
public double cost(double a,
double b)
cost in interface WeightFunca - ab - bpublic void setParam(String val)
setParam in interface WeightFuncval - valpublic String whoAmI()
whoAmI in interface WeightFuncCopyright © 2000–2022 DFKI GmbH. All rights reserved.