|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.adapter.ModelShift.PinholeModel
public static class ModelShift.PinholeModel
A pinhole model is the model of a star with fitted intensity and FWHM close to the fixed pinhole position at the given coordinates. We fit four parameters, the Δx and Δy of the relative star shift, the total flux of the star and the FWHM of the star.
| Field Summary | |
|---|---|
private double |
beta
The beta of the moffat function. |
private double[] |
data
The array of the measured data points minus background. |
private Dimension |
geometry
The geometry of the frame. |
private VectorG |
m0
A first estimate of the model parameters. |
private double[] |
photsig
The estimated photon noise sigma. |
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. |
| Constructor Summary | |
|---|---|
private |
ModelShift.PinholeModel(nom.tam.fits.ImageHDU 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. |
| Method Summary | |
|---|---|
double |
evaluateModel(VectorG dxdy,
VectorG xy)
Per definition, the independant variable, time, is here a two-dimensional vector specifying the location of the pixel. |
protected VectorG |
getFirstModel()
Returns a first estimate. |
Matrix |
getGradientMatrix(VectorG dxdy)
Returns the gradient matrix. |
int |
getMeasureCount()
Return the number of measurements in the data model. |
double[] |
getMeasurementErrors()
Returns the photon noise. |
double[] |
getMeasures()
Returns the data array. |
double[] |
getModel(VectorG dxdy)
Per definition, the model data is a Vector of all data points, not an area. |
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 |
double[] |
getResiduals(VectorG a)
Returns the residulas. |
VectorG[] |
getTimes()
Returns the evaluation points. |
double[] |
getTotalErrors()
Returns the photon noise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Point2D pinhole
private double pinsize
private double pinsteep
private double pindip
private double beta
private Dimension geometry
private double[] data
private double[] photsig
private VectorG m0
| Constructor Detail |
|---|
private ModelShift.PinholeModel(nom.tam.fits.ImageHDU measured,
Rectangle box,
double back,
double backerr,
Point2D pos,
double size,
double k,
double deep,
double moffat)
throws IOException,
nom.tam.fits.FitsException
IOException
nom.tam.fits.FitsException| Method Detail |
|---|
public int getParameterCount()
getParameterCount in interface DataModelpublic int getMeasureCount()
getMeasureCount in interface DataModelDataModel.getModel(vec_math.VectorG).public double[] getMeasures()
getMeasures in interface DataModelpublic double[] getTotalErrors()
getTotalErrors in interface DataModelpublic double[] getResiduals(VectorG a)
getResiduals in interface DataModela - The model parameters, not necessarily the best fit.public double[] getMeasurementErrors()
getMeasurementErrors in interface DataModelpublic VectorG[] getTimes()
getTimes in interface DataModelDataModel.getMeasureCount().protected VectorG getFirstModel()
public double[] getModel(VectorG dxdy)
getModel in interface DataModeldxdy - The model parameters
public double evaluateModel(VectorG dxdy,
VectorG xy)
evaluateModel in interface DataModeldxdy - The model parameters as defined aboveThe - pixel location as a two-dim vector.public Matrix getGradientMatrix(VectorG dxdy)
getGradientMatrix in interface GradientModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||