public class RandomSpacedMerit extends AbstractMerit
| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFSTEEPNESS
Default value for the period.
|
private static String |
DEFTIME
Default time parameter name.
|
private static double |
DEFZEROFRACTION
Default no picking half of the period.
|
static String |
KEY_MAXDAYS
The key linked to the period of the observations.
|
static String |
KEY_MINDAYS
The key linked to the period of the observations.
|
static String |
KEY_STEEPNESS
The key linked to the steepness of the aim time influence.
|
static String |
KEY_TIME
The key pointing to the name of the time parameter.
|
static String |
KEY_ZEROFRACTION
The key linked to the fraction of the period the merit stay zero.
|
private static long |
serialVersionUID |
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
RandomSpacedMerit(Map<String,String> prop)
Constructs an evenly spaced merit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection ignore,
long within)
Calculates the actual time slot merit.
|
protected Date |
getT0(GlobalGrouping set,
Appointable target)
Returns the date of the relevant last observation.
|
protected Date |
getT0FromSubmitted(GlobalGrouping set,
Date submit) |
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, toStringprivate static final long serialVersionUID
public static final String KEY_MINDAYS
public static final String KEY_MAXDAYS
public static final String KEY_ZEROFRACTION
public static final String KEY_STEEPNESS
public static final String KEY_TIME
private static final double DEFSTEEPNESS
private static final double DEFZEROFRACTION
private static final String DEFTIME
protected Date getT0(GlobalGrouping set, Appointable target)
public double getMerit(GlobalGrouping set, Appointable target, Collection ignore, long within)
KEY_STEEPNESS of the merit,
a value between zero and positive infinity is returned. The value
returned one period after t0 is always one.set - Current observing conditions.target - The actual target.ignore - All targets, observable or not.within - The relevant time span in ms.protected Date getT0FromSubmitted(GlobalGrouping set, Date submit)