public class AtTimeMerit extends AbstractMerit
.
ts(t)=(2n)^-1/2n*exp(-1/2n)*x^1/n·exp(-x^2), x=(t-(t0-trise))/sqr(2n)·trise.The first factor normalizes the merit to one for t=t0. Before t0-trise a merit of zero is returned.
| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFRISE
Default value for the rise time, twelve hours.
|
private static int |
DEFSHARP
Default value for the sharpness.
|
private static String |
DEFTIME
Default time parameter name.
|
static String |
KEY_RISE
The key linked to the time merit rises from zero to peak.
|
static String |
KEY_SHARP
The sharpness of the rise, i.e.
|
static String |
KEY_T0
The key linked to the time when merit peaks.
|
static String |
KEY_TIME
The key pointing to the name of the time parameter.
|
private double |
scale
To return a mximum merit of one.
|
private double |
sigma
The scaling factor for the time.
|
private double |
x0
The zero time when the merit is zero.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
AtTimeMerit(Map<String,String> prop)
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection<Appointable> ignore,
long spms)
Calculates the actual time slot merit.
|
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_T0
public static final String KEY_RISE
public static final String KEY_SHARP
public static final String KEY_TIME
private static final double DEFRISE
private static final int DEFSHARP
private static final String DEFTIME
private final double x0
private final double sigma
private final double scale
public AtTimeMerit(Map<String,String> prop)
DEFRISE) and sharpness (DEFSHARP .
Proper creation should be
done using the
AbstractMerit.createMerit(java.util.Map<java.lang.String, java.lang.String>)
method. This create method also takes care of proper parameter
overloading.public double getMerit(GlobalGrouping set, Appointable target, Collection<Appointable> ignore, long spms)
set - Current observing conditions.target - The actual target.ignore - All targets, observable or not.spms - The relevant time span in ms.