30 unsigned int nccdmax=35);
54 unsigned int Size(
int igroup=-1)
const;
57 unsigned int NPar(
int igroup=-1)
const;
78 double& val, Vect& deriv)
const;
81 void SetRefCCD(
unsigned int ccd,
double scale=1.);
82 void ReleaseRefCCD(
unsigned int ccd);
83 void SetExclCCD(
unsigned int ccd);
101 Vect
const& epars)
const;
108 unsigned int nstarmax_;
109 unsigned int nccdmax_;
136 unsigned int nccdmax=36,
137 unsigned int nexpmax=1000);
155 unsigned int Size(
int igroup=-1)
const;
158 unsigned int NPar(
int igroup=-1)
const;
179 double& val, Vect& deriv)
const;
182 void SetRefCCD(
unsigned int ccd,
double scale=1.);
184 void SetRefExp(
CcdImage const&,
double scale=1.);
185 void SetRefExp(
int expindex,
double scale=1.);
187 void SetRefStar(
FittedStar const&,
double flux);
198 Vect
const& epars)
const;
202 unsigned int nfccdpf_;
203 unsigned int nfexppf_;
205 unsigned int nstarmax_;
206 unsigned int nccdmax_;
207 unsigned int nexpmax_;
234 unsigned int nccdimmax);
248 unsigned int Size(
int igroup=-1)
const;
251 unsigned int NPar(
int igroup=-1)
const;
269 double& val, Vect& deriv)
const;
273 void SetRefExp(
unsigned int expindex,
double scale=1.);
282 Vect
const& epars)
const;
288 unsigned int nstarmax_;
289 unsigned int nexpmax_;
unsigned int NPar(int igroup=-1) const
return the total number of parameters
Definition: photmodel.cc:376
unsigned int Size(int igroup=-1) const
return the max size of the model
Definition: photmodel.cc:61
Another model, to see whether we improve the situation by adding one scale per exposure, in addition to fitting one scale per CCD.
Definition: photmodel.h:132
bool Compute(const MeasuredStar &var, const Vect &pars, double &val, Vect &deriv) const
main method: compute the model value and its derivatives
Definition: photmodel.cc:144
This is the simplest model: we fit one scale per CCD and we do not align the exposures.
Definition: photmodel.h:26
bool CanCompute(const MeasuredStar &var, Vect &pars) const
set the pars(i) to 1 (if the corresponding par is a ref) or 2 (if the corresponding par is fitted) le...
Definition: photmodel.cc:79
bool Compute(const MeasuredStar &var, const Vect &pars, double &val, Vect &deriv) const
main method: compute the model values and its derivatives
Definition: photmodel.cc:772
unsigned int NFittedStars() const
number of fitted stars
Definition: photmodel.h:257
unsigned int NPar(int igroup=-1) const
return the size of the parameter std::list
Definition: photmodel.cc:69
void SetRefExp(CcdImage const &, double scale=1.)
declare a CCD (on a given exposure) as REF
Definition: photmodel.cc:832
bool CanCompute(const MeasuredStar &var, Vect &pars) const
set the pars(i) to 1 if the corresponding par is a ref to 2 if the corresponding par is fitted leave ...
Definition: photmodel.cc:714
int NGroups() const
return the size of the parameter std::list
Definition: photmodel.h:149
void InitPars(Vect &pars) const
Initialize the fit from the PhotFitter information.
Definition: photmodel.cc:37
unsigned int NPar(int igroup=-1) const
total number of parameters
Definition: photmodel.cc:705
unsigned int NFittedCCDPhotFactors() const
return the total number of fitted CCD (global) photometric factors
Definition: photmodel.h:161
void InitIndexTables(Vect const &pars)
Init the index tables.
Definition: photmodel.cc:116
int GetPhotFactorIndex(MeasuredStar const &) const
indexing methods
Definition: photmodel.cc:847
The class that implements the relations between MeasuredStar and FittedStar.
Definition: associations.h:17
void SetRefCCD(unsigned int ccd, double scale=1.)
Declare a CCD (on a given exposure) as a ref.
Definition: photmodel.cc:567
unsigned int Size(int igroup=-1) const
return the max size of the model
Definition: photmodel.cc:697
handler of an actual image from a single CCD
Definition: ccdimage.h:21
unsigned int NFittedPhotFactors() const
number of photometric factors
Definition: photmodel.h:254
void UpdateFittedStar(FittedStar &fs, Vect const &pars, Vect const &epars) const
update the internal parameters of the fitted star
Definition: photmodel.cc:290
void UpdateFittedStar(FittedStar &fs, Vect const &pars, Vect const &epars) const
update the measurements
Definition: photmodel.cc:870
void InitIndexTables(Vect const &pars)
init the index tables
Definition: photmodel.cc:438
void InitIndexTables(Vect const &pars)
Init the index tables.
Definition: photmodel.cc:747
int NGroups() const
parameter groups
Definition: photmodel.h:48
void UpdateFittedStar(FittedStar &fs, Vect const &pars, Vect const &epars) const
update the internal parameters of the fitted star
Definition: photmodel.cc:639
unsigned int NFittedExposurePhotFactors() const
return the number of exposure photometric factors
Definition: photmodel.h:167
unsigned int NFittedPhotFactors() const
return the total number of fitted phot factors
Definition: photmodel.h:63
unsigned int GroupIndex(int igroup) const
group index
Definition: photmodel.cc:689
int GetCcdPhotFactorIndex(MeasuredStar const &) const
indexing methods
Definition: photmodel.cc:605
The objects which have been measured several times. The MeasuredStar s measuring the same object in d...
Definition: fittedstar.h:37
Another model, were we fit juste one scale per exposure.
Definition: photmodel.h:230
unsigned int GroupIndex(int igroup) const
group index
Definition: photmodel.cc:52
int NGroups() const
parameter groups
Definition: photmodel.h:242
bool CanCompute(const MeasuredStar &var, Vect &par) const
set the pars(i) to 1 if the corresponding par is a reference 2 if the corresponding par can be fitted...
Definition: photmodel.cc:386
unsigned int NFittedStars() const
return the total number of fitted stars
Definition: photmodel.h:66
objects measured on actual images. Coordinates and uncertainties are expressed in pixel image frame...
Definition: measuredstar.h:21
void InitPars(Vect &pars) const
initialize the fit – determine the total number fitted parameters
Definition: photmodel.cc:676
int GetPhotFactorIndex(MeasuredStar const &) const
return the ccdimage photometric factor index in the parameter std::vector we give the measured star b...
Definition: photmodel.cc:266
unsigned int Size(int igroup=-1) const
return the max size of the model
Definition: photmodel.cc:366
void SetRefCCD(unsigned int ccd, double scale=1.)
Declare a given CCD as reference.
Definition: photmodel.cc:238
unsigned int GroupIndex(int igroup) const
group index
Definition: photmodel.cc:356
int GetStarFluxIndex(MeasuredStar const &) const
return the star flux index in the parameter std::vector we give the measured star in arg because we m...
Definition: photmodel.cc:277
void InitPars(Vect &pars) const
initialize the fit parameters w/ info found in the fitter –or maybe just in the associations ...
Definition: photmodel.cc:342
unsigned int NFittedStars() const
return the total number of fitted stars
Definition: photmodel.h:164
bool Compute(const MeasuredStar &var, const Vect &pars, double &val, Vect &deriv) const
main method compute the model values and its derivatives
Definition: photmodel.cc:477