public class SkyQualityFit extends AbstractFit
| Modifier and Type | Class and Description |
|---|---|
static class |
SkyQualityFit.Asiva |
static class |
SkyQualityFit.Load |
PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private AltAzFromFits |
aaff |
private static int |
DEFAVBOX
Default averaging box size.
|
private static double |
DEFCONFIDENCE
Confidence limit that has to be surpassed to accept parameter.
|
private static double |
DEFFITRMS
Default RMS we fit to.
|
private static int |
DEFLMAX
Minimum fit degree.
|
private static int |
DEFLMIN
Minimum fit degree.
|
private static double |
DEFMAXFITHEIGHT
Minimum fitting height.
|
private static double |
DEFMINFITHEIGHT
Minimum fitting height.
|
private static double |
DEFVALIDMIN
Default minimum sky value considered valid.
|
private VectorG |
fit |
private VectorG |
fiterr |
static String |
KEY_AVBOX
This is the box-size used for averaging.
|
static String |
KEY_CONFIDENCE
Confidence limit for parameters.
|
static String |
KEY_FITRMS
This is the RMS we fit to.
|
static String |
KEY_LMAX
Maximum degree of spherical fit until fitrms must be reached.
|
static String |
KEY_LMIN
Minimum degree of spherical fit.
|
static String |
KEY_MAXFITHEIGHT
Minimum fitting height.
|
static String |
KEY_MINFITHEIGHT
Minimum fitting height.
|
static String |
KEY_VALIDMIN
This is the minimum value we consider valid.
|
private SkyQualityModel |
sqm |
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 |
|---|
SkyQualityFit(Map<String,String> prop) |
| Modifier and Type | Method and Description |
|---|---|
VectorG |
fit()
We start at the minimum degree for the spherical expansion and fit
until we surpass the maximal allowed RMS.
|
private double |
fTest(double ftest,
int l,
int n) |
VectorG |
getCovarianceErrors() |
DataModel |
getDataModel() |
private double |
getF0(double chi2low,
double chi2,
int l,
int n) |
VectorG |
getFitted() |
List<Variable> |
getFittedParameters() |
private static int[] |
parameterDeletion(VectorG fitted,
VectorG error,
int n,
double confidence) |
DataModel |
prepareFit(ModelSource ms) |
private static Pair<VectorG,VectorG> |
restoreFit(SkyQualityModel sqm,
File from) |
MImageHDU |
restoreImage()
After solving for the minimizing harmonics parameters, call this method
to restore the original sky-quality image to the degree possible.
|
private boolean |
saveSkyFit(VectorG sqf,
File as) |
private static boolean |
serializeFit(SkyQualityModel sqm,
VectorG fit,
VectorG fiterr,
File into) |
formatError, formatValue, getChi2, getDeducedParameters, getModelParameterErrors, getModelParameterValues, getR2, getRms, init, prettyPrint, qualityOfFit, setConstant, setInitialConditionclone, 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 KEY_AVBOX
public static final String KEY_VALIDMIN
public static final String KEY_FITRMS
public static final String KEY_LMIN
public static final String KEY_LMAX
public static final String KEY_MINFITHEIGHT
public static final String KEY_MAXFITHEIGHT
public static final String KEY_CONFIDENCE
private static final int DEFAVBOX
private static final double DEFVALIDMIN
private static final double DEFFITRMS
private static final int DEFLMIN
private static final int DEFLMAX
private static final double DEFMINFITHEIGHT
private static final double DEFMAXFITHEIGHT
private static final double DEFCONFIDENCE
private SkyQualityModel sqm
private VectorG fit
private VectorG fiterr
private AltAzFromFits aaff
public DataModel prepareFit(ModelSource ms)
public VectorG fit()
private double fTest(double ftest,
int l,
int n)
private double getF0(double chi2low,
double chi2,
int l,
int n)
private static int[] parameterDeletion(VectorG fitted, VectorG error, int n, double confidence)
private static boolean serializeFit(SkyQualityModel sqm, VectorG fit, VectorG fiterr, File into) throws IOException
IOExceptionprivate static Pair<VectorG,VectorG> restoreFit(SkyQualityModel sqm, File from) throws IOException
IOExceptionpublic MImageHDU restoreImage() throws BasicFitsException
FitsExceptionBasicFitsExceptionpublic VectorG getFitted()
public VectorG getCovarianceErrors()
public DataModel getDataModel()