public class PickRaiseMerit extends AbstractMerit implements EndpointDefining
EndpointDefining). This
behaviour implies that k is non-negative, m is arbitrary, z is non-negative
and z>2m. The polynom used is
merit(t)=k[n²/z(2m-z)+2mċn/z(z-2m)+1]
AfterPickMerit,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private double |
apoly
To easy evaluation, calculate polynomial at construct.
|
private double |
bpoly
To easy evaluation, calculate polynomial at construct.
|
private static int |
DEFPICKMAXIMUM
The default rise-time to the maximum.
|
private static double |
DEFSCALE
The default scale.
|
static String |
KEY_PICKMAXIMUM
The number of picks until the merit reaches its maximum.
|
static String |
KEY_PICKZERO
The number of picks when the merit drops down to zero.
|
static String |
KEY_SCALE
The key linked to the maximum scaling factor k of the merit.
|
private double |
scaling
To easy evaluation, calculate polynomial at construct.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
PickRaiseMerit(Map<String,String> prop)
Constructs a new after-start merit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping needtime,
Appointable aim,
Collection oftargets,
long ignore)
Calculates the merit.
|
boolean |
isCompleted(GlobalGrouping set,
Appointable aim)
Test, if the first successful observation has been done too long in the
past.
|
createMerit, getInitializer, initMeritaugment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String KEY_SCALE
public static final String KEY_PICKMAXIMUM
public static final String KEY_PICKZERO
private static final double DEFSCALE
private static final int DEFPICKMAXIMUM
private final double apoly
private final double bpoly
private final double scaling
public double getMerit(GlobalGrouping needtime, Appointable aim, Collection oftargets, long ignore)
KEY_PICKZERO time in the past, zero is returned. In the
intermittant phase return a merit that rises from the scale factor until
some KEY_PICKMAXIMUM time is passed, then drops to zero.public boolean isCompleted(GlobalGrouping set, Appointable aim)
isCompleted in interface EndpointDefining