public class PhaseMerit extends AbstractPhaseMerit implements EndpointDefining, Initializable
PhaseCoherentMerit, but it defines the frequnecy slot with respect to
a defined t0, given as an HJD. If the KEY_AIMN property is set, the
observational phases are equally spaced like in Doppler imaging observation,
otherwise KEY_ATPHASES defines a list of observational phases. The
merit does not increase with the number of successful observations like the
PhaseCoherentMerit.KEY_UNCERTAINTY is set,
then it ends when the phase error extends KEY_PHASESHIFT. The phase
error is:
δφ=δP/P*(φ+int((t-t0)/P)/P)+1/P*int((t-t0)δP/P² ;)This merit can be combined with a
ConstantMerit or a
OneObservationMerit to further constrain target picking.EndpointDefining interface. The
isCompleted(globals.GlobalGrouping, stella.Appointable) method returns true as soon as all phase-requested
observations have been made.| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFPHASESHIFT
Default maximum phase shift.
|
private static String |
DEFWIDTH
Default value for the width in phase space.
|
static String |
KEY_AIMN
The number of phase points to observe.
|
static String |
KEY_ATPHASES
Observe at these distinct phases.
|
static String |
KEY_PHASESHIFT
If the uncertainty shifts the phase more than this, we stop.
|
static String |
KEY_UNCERTAINTY
If set, the uncertainty in the period as a fraction of the period.
|
static String |
KEY_WIDTH
The key linked to width of the observation intervall in phase space.
|
private List<Double> |
phases
The list of phases we want to observe at.
|
private static long |
serialVersionUID |
private List<Double> |
width
And their width.
|
KEY_HJDCORRECTION, KEY_JD, KEY_PERIODDAY, KEY_USEHJD, KEY_ZEROPHASEKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
PhaseMerit(Map<String,String> prop)
Constructs a phase-coherent merit.
|
| Modifier and Type | Method and Description |
|---|---|
private static double |
forPhase(double phase,
double peak,
double sig)
Calculates the merit at the current phase for the given peak location and
shape.
|
double |
getMerit(GlobalGrouping set,
Appointable target,
Collection ignore,
long within)
Calculates the actual time slot merit.
|
void |
init()
Generates the list of phases we want to observe.
|
boolean |
isCompleted(GlobalGrouping set,
Appointable target)
Check, if the observation is complete.
|
getDaysSinceT0, getHjd, getHjd, getPeriodsSinceT0, getPhase, getPhase, getT0createMerit, 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_AIMN
public static final String KEY_ATPHASES
public static final String KEY_UNCERTAINTY
public static final String KEY_PHASESHIFT
public static final String KEY_WIDTH
private static final String DEFWIDTH
private static final double DEFPHASESHIFT
public PhaseMerit(Map<String,String> prop)
AbstractMerit.createMerit(java.util.Map<java.lang.String, java.lang.String>) method. This create method
also takes care of proper parameter overloading.public void init()
init in interface Initializableinit in class AbstractPhaseMeritpublic double getMerit(GlobalGrouping set, Appointable target, Collection ignore, long within)
private static final double forPhase(double phase,
double peak,
double sig)
phase - The merit phasepeak - The individual phase peak.sigma - Width of individual peak.sharp - The power in the Hoerl-like function.public boolean isCompleted(GlobalGrouping set, Appointable target)
isCompleted in interface EndpointDefining