protected static class AbstractSkyMaker.SkyRandomModel extends AbstractFitsImageModel
| Modifier and Type | Field and Description |
|---|---|
private boolean |
debug |
private boolean |
fluxpreserve |
private PoissonRandom |
noise |
(package private) long |
t0 |
| Modifier | Constructor and Description |
|---|---|
protected |
SkyRandomModel(double[] fits,
Rectangle box) |
| Modifier and Type | Method and Description |
|---|---|
VectorG |
evaluateModel(VectorG parameters,
VectorG t) |
float[] |
getFloatImageModel(VectorG parameters)
Returns the image model
|
int |
getParameterCount()
In total, there are three parameter, the bias background, the read
noise and the gain.
|
boolean |
isFluxPreserve()
If true, ADU returned are not scaled to gain, only errors are.
|
private double |
randomize(double bias,
double ron,
double gain,
int i0) |
void |
setDebug(boolean b) |
void |
setFluxPreserve(boolean fluxpreserve) |
aboveBackground, dimension, dimensionOfIndependent, equalData, getArea, getFloatImageData, getFloatImageDataErrors, getFloatImageResiduals, getImageData, getImageDataErrors, getImageModel, getImageResiduals, getMeasureCount, getMeasurementErrors, getMeasures, getMetric, getModel, getResiduals, getRms, getTimes, getTotalErrors, getUpLeft, getYX, photonAndReadoutNoise, setAduErrors, subtractprivate boolean fluxpreserve
private final PoissonRandom noise
private boolean debug
long t0
protected SkyRandomModel(double[] fits,
Rectangle box)
public void setDebug(boolean b)
public int getParameterCount()
public float[] getFloatImageModel(VectorG parameters)
getFloatImageModel in class AbstractFitsImageModelprivate double randomize(double bias,
double ron,
double gain,
int i0)
bias - ron - gain - iy - ix - public boolean isFluxPreserve()
public void setFluxPreserve(boolean fluxpreserve)
fluxpreserve - the fluxpreserve to set