private static class ScaleFeature.MultFeature extends ScaleFeature
Modifier and Type | Field and Description |
---|---|
private double |
coeff
the coefficient
|
private long |
offset
the offset
|
Modifier | Constructor and Description |
---|---|
private |
MultFeature(Feature f,
double p_coeff,
long p_offset) |
Modifier and Type | Method and Description |
---|---|
RuleAppCost |
computeCost(RuleApp app,
PosInOccurrence pos,
Goal goal)
Evaluate the cost of a
RuleApp . |
createAffine, createAffine, createScaled, getFeature, illegalCostError, isZero, realAffine
private final double coeff
private final long offset
private MultFeature(Feature f, double p_coeff, long p_offset)
public RuleAppCost computeCost(RuleApp app, PosInOccurrence pos, Goal goal)
Feature
RuleApp
.app
- the RuleApppos
- position where app
is to be appliedgoal
- the goal on which app
is to be appliedRuleAppCost
object. TopRuleAppCost.INSTANCE
indicates that the rule shall not be applied at all (it is discarded by
the strategy).