public class OrbitFit extends AbstractFit
KEY_PERIOD. On #process, it tries to solve for the orbit,
returning the orbit solution at the input times. On visualization, the orbit
solution is returned, which is further processed in metadata like in the
parental class.
Additionally, the orbit analyser is a function, allowing the calculation of the radial velocity as a function of time once the orbit has been solved.
| Modifier and Type | Class and Description |
|---|---|
static class |
OrbitFit.File
Reads the rv from a file.
|
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
static String |
ASINI |
static String |
BARYCENTER
The name of the barycenter radial velocity.
|
private static double |
DEFDERIVATIVE
If true, use levenberg-marquardt.
|
private static double |
DEFPERIOD
We have to set the period to some default value.
|
private static String |
DEFUNITAMPLITUDE
Default unit.
|
private static String |
DEFUNITBARYCENTER
Default unit.
|
private static String |
DEFUNITE
Default unit.
|
private static String |
DEFUNITPERIOD
Default unit.
|
private static String |
DEFUNITPLENGTH
Default unit.
|
private static String |
DEFUNITPTIME
Default unit.
|
static String |
ECCENTRICITY
The eccentricity of the orbit.
|
private VectorG |
error
After successfully solving for the orbit, this is the model error.
|
static String |
KEY_DERIVATIVE
If harmonic error less, use levenberg-marquardt.
|
static String |
KEY_EPSILON
Default improvement in chi-2 to induce terminating loop.
|
static String |
KEY_EXTERNALERROR
Default external error.
|
static String |
KEY_ITER
Default number of maximum iteration in levenberg-marquardt.
|
static String |
KEY_LAMBDA
Default starting value for the 'fudge factor' boosting hessian.
|
static String |
KEY_PERIOD
This is the main fitting parameter.
|
static String |
KEY_TERMINATE
Default number of maximum improvements, if epsilon is reached.
|
static String |
KEY_UNITAMPLITUDE
Default unit.
|
static String |
KEY_UNITBARYCENTER
Default unit.
|
static String |
KEY_UNITE
Default unit.
|
static String |
KEY_UNITPERIOD
Default unit.
|
static String |
KEY_UNITPLENGTH
Default unit.
|
static String |
KEY_UNITPTIME
Default unit.
|
static String |
MASSFUNCTION |
private OrbitModel |
model
The data model.
|
private VectorG |
orbit
After successfully solving for the orbit, this is the model fit.
|
static String |
PERIHELIONLENGTH
The name of the length of perihelion constant.
|
static String |
PERIHELIONTIME
The name of the time of perihelion passage constant.
|
static String |
PERIOD
period constant.
|
static String |
RMS
The rms of the solution.
|
static String |
RVAMPLITUDE
The name of the radial velocity amplitude.
|
KEY_DEFAULTERROR, KEY_DEFAULTFORMAT, KEY_ERRORFORMAT, KEY_PARAMETERFORMATKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
OrbitFit(Map<String,String> prop)
An illegal period is the starting value, to determine correct usage.
|
| Modifier and Type | Method and Description |
|---|---|
VectorG |
fit()
The fit to the orbit data depends from a good estimate of the period.
|
DataModel |
getDataModel()
Returns the phase model.
|
List<Variable> |
getDeducedParameters(List<Variable> fit)
A standard fit does not provide deduced parameters, we return null here.
|
VectorG |
getFitted() |
List<Variable> |
getFittedParameters()
Returns the fitted parameters.
|
DataModel |
prepareFit(ModelSource input)
We try to solve for the orbit, if the period set in the properties is a
valid choice.
|
boolean |
setInitialCondition(Variable p)
We need the period as an initial condition.
|
formatError, formatValue, getChi2, getModelParameterErrors, getModelParameterValues, getR2, getRms, init, prettyPrint, qualityOfFit, setConstantclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, 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, isNew, parseObject, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiespublic static final String PERIHELIONTIME
public static final String PERIOD
public static final String ECCENTRICITY
public static final String PERIHELIONLENGTH
public static final String RVAMPLITUDE
public static final String BARYCENTER
public static final String ASINI
public static final String MASSFUNCTION
public static final String RMS
public static final String KEY_PERIOD
public static final String KEY_ITER
public static final String KEY_TERMINATE
public static final String KEY_EPSILON
public static final String KEY_LAMBDA
public static final String KEY_DERIVATIVE
public static final String KEY_UNITPTIME
public static final String KEY_UNITPERIOD
public static final String KEY_UNITE
public static final String KEY_UNITPLENGTH
public static final String KEY_UNITAMPLITUDE
public static final String KEY_UNITBARYCENTER
public static final String KEY_EXTERNALERROR
private static final double DEFPERIOD
private static final double DEFDERIVATIVE
private static final String DEFUNITPTIME
private static final String DEFUNITPERIOD
private static final String DEFUNITE
private static final String DEFUNITPLENGTH
private static final String DEFUNITAMPLITUDE
private static final String DEFUNITBARYCENTER
private OrbitModel model
private VectorG orbit
private VectorG error
public boolean setInitialCondition(Variable p)
setInitialCondition in interface ModelFittingsetInitialCondition in class AbstractFitpublic DataModel prepareFit(ModelSource input)
in - All measures as a time-to-rv-with-error Vector3D array.public VectorG fit()
KEY_DERIVATIVE value, we first try a Levenberg-Marquardt solver
on the full orbital model, and return, if this converges. If not, or if
the RMS of the circular solution was too big, we solve with an Amoeba
(Simplex search). The error in the fitted parameters returned are the
diagonal elements of the covariance matrix, which is only a very crude
estimate of the errors.public VectorG getFitted()
public DataModel getDataModel()
public List<Variable> getDeducedParameters(List<Variable> fit)
getDeducedParameters in interface ModelFittinggetDeducedParameters in class AbstractFit