public static class ModelShift.PinholeShift extends AbstractPinholeModel.AbstractPinholeFits implements LevenbergMarquardtCapable, GradientMultidimensionalModel
| Modifier and Type | Field and Description |
|---|---|
private double |
beta
The beta of the moffat function.
|
private VectorG |
m0
A first estimate of the model parameters.
|
private double |
pindip
For modeling the pinhole.
|
private Point2D |
pinhole
The fixed pinhole position.
|
private double |
pinsize
The pinhole size in pixel.
|
private double |
pinsteep
For modeling the pinhole, the steepness.
|
| Modifier | Constructor and Description |
|---|---|
private |
PinholeShift(MImageHDU measured,
Rectangle box,
double back,
double backerr,
Point2D pos,
double size,
double k,
double deep,
double moffat)
Constructs a new data model for the pinhole.
|
| Modifier and Type | Method and Description |
|---|---|
VectorG |
evaluateModel(VectorG dxdy,
VectorG xy)
Per definition, the independant variable, time, is here a
two-dimensional vector specifying the location of the pixel.
|
VectorG[] |
evaluateModelGradient(VectorG dxdy,
VectorG at) |
Multidimensional |
getChiSquareModel() |
VectorG |
getFirstModel()
Returns a first estimate.
|
VectorG |
getFirstStep()
A step estimate.
|
private MyMatrix |
getGradientMatrix(VectorG dxdy)
Returns the gradient matrix.
|
private VectorG[] |
getGradientsAtMeasure(int row,
VectorG dxdy) |
VectorG |
getNegativeChi2HalfGradient(VectorG better) |
int |
getParameterCount()
The model parameters are
Shift of star to pinhole in x-direction, pixel
Shift of star to pinhole in y-direction, pixel
Total ADU flux of star
FWHM of star in pixel.
This we
|
QuadMatrix |
getPseudoHessian(VectorG better) |
double[] |
getStarModel(VectorG dxdy)
Returns the model of the star as it would have been seen without
the pinhole.
|
applyBackground, applyBackgroundaboveBackground, dimension, dimensionOfIndependent, equalData, getArea, getFloatImageData, getFloatImageDataErrors, getFloatImageModel, getFloatImageResiduals, getImageData, getImageDataErrors, getImageModel, getImageResiduals, getMeasureCount, getMeasurementErrors, getMeasures, getMetric, getModel, getResiduals, getRms, getTimes, getTotalErrors, getUpLeft, getYX, photonAndReadoutNoise, setAduErrors, subtractclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdimension, dimensionOfIndependent, getMeasureCount, getMeasurementErrors, getMeasures, getMetric, getModel, getResiduals, getTimes, getTotalErrorsprivate final Point2D pinhole
private final double pinsize
private final double pinsteep
private final double pindip
private final double beta
private final VectorG m0
private PinholeShift(MImageHDU measured, Rectangle box, double back, double backerr, Point2D pos, double size, double k, double deep, double moffat) throws IOException, BasicFitsException
IOExceptionBasicFitsExceptionpublic int getParameterCount()
getParameterCount in interface MultidimensionalDataModelpublic VectorG getFirstModel()
getFirstModel in class AbstractPinholeModel.AbstractPinholeFitspublic VectorG getFirstStep()
getFirstStep in class AbstractPinholeModel.AbstractPinholeFitspublic double[] getStarModel(VectorG dxdy)
AbstractPinholeModel.AbstractPinholeFitsgetStarModel in class AbstractPinholeModel.AbstractPinholeFitspublic VectorG evaluateModel(VectorG dxdy, VectorG xy)
evaluateModel in interface MultidimensionalDataModeldxdy - The model parameters as defined aboveThe - pixel location as a two-dim vector.public VectorG[] evaluateModelGradient(VectorG dxdy, VectorG at)
evaluateModelGradient in interface GradientMultidimensionalModelprivate MyMatrix getGradientMatrix(VectorG dxdy)
public VectorG getNegativeChi2HalfGradient(VectorG better)
getNegativeChi2HalfGradient in interface LevenbergMarquardtCapablepublic QuadMatrix getPseudoHessian(VectorG better)
getPseudoHessian in interface LevenbergMarquardtCapablepublic Multidimensional getChiSquareModel()
getChiSquareModel in interface LevenbergMarquardtCapable