Package com.netrics.likeit
Class MatchCaseSecondaryQuerylet
- java.lang.Object
-
- com.netrics.likeit.MatchCaseQuerylet
-
- com.netrics.likeit.MatchCaseSecondaryQuerylet
-
public final class MatchCaseSecondaryQuerylet extends MatchCaseQuerylet
A secondary querylet for MatchCase.
-
-
Constructor Summary
Constructors Constructor Description MatchCaseSecondaryQuerylet(NetricsQuery qlet, double threshold, double reward, java.lang.Double penalty)Creates a MatchCase secondary querylet.
-
-
-
Constructor Detail
-
MatchCaseSecondaryQuerylet
public MatchCaseSecondaryQuerylet(NetricsQuery qlet, double threshold, double reward, java.lang.Double penalty)
Creates a MatchCase secondary querylet.- Parameters:
qlet- The underlying querylet.threshold- If the score forqletis below this value,penaltyis applied to the MatchCase score. The actual penalty is scaled based on where the score forqletfalls between the threshold and 0.0.thresholdmust be >= 0.0 and <= 1.0.
If the score forqletis above this value,rewardis applied to the MatchCase score. The actual reward is scaled based on where the score forqletfalls between the threshold and 1.0.reward- Increases the score if the score forqletis above the threshold. Must be >= 0.0 and <= 1.0.penalty- Decreases the score if the score forqletis below the threshold. If null, penalty will be the same as reward. If not null, must be >= 0.0 and <= 1.0. The actual reward is scaled based on where the score for qlet falls between 0.0 and the threshold.
-
-