Implementation of an axisymmetric 2D Gaussian convolved with a line – a model for a fast-moving, trailed-source (Veres et al.
More...
#include <VeresModel.h>
Implementation of an axisymmetric 2D Gaussian convolved with a line – a model for a fast-moving, trailed-source (Veres et al.
2012).
VeresModel is designed to compute the chi-squared of the model given an lsst::afw::image::Exposure.
Definition at line 47 of file VeresModel.h.
◆ ExposureF
◆ ImageF
◆ VeresModel() [1/3]
lsst::meas::extensions::trailedSources::VeresModel::VeresModel |
( |
ExposureF const & | data | ) |
|
|
explicit |
Constructor for VeresModel.
- Parameters
-
data | Exposure passed from the measurement task. |
Definition at line 39 of file VeresModel.cc.
◆ VeresModel() [2/3]
lsst::meas::extensions::trailedSources::VeresModel::VeresModel |
( |
VeresModel const & | | ) |
|
|
default |
◆ VeresModel() [3/3]
lsst::meas::extensions::trailedSources::VeresModel::VeresModel |
( |
VeresModel && | | ) |
|
|
default |
◆ ~VeresModel()
lsst::meas::extensions::trailedSources::VeresModel::~VeresModel |
( |
| ) |
|
|
default |
◆ computeFluxWithGradient()
std::tuple< double, std::vector< double > > lsst::meas::extensions::trailedSources::VeresModel::computeFluxWithGradient |
( |
std::vector< double > const & | params | ) |
const |
Computes the flux and the gradient with respect to the other model parameters.
We estimate the flux by solving the linear least-squares problem for the Veres et al. 2012 model. By keeping the length, angle, and centroid coordinates fixed, we analytically solve for the flux.
- Parameters
-
- Returns
- The flux and the gradient with respect to the model parameters.
- Note
- The params vector contains the following model parameters:
- Centroid x: X-coordinate of the centroid in given image [pixels].
- Centroid y: Y-coordinate of the centroid in given image [pixels].
- Flux: Total flux in the trail [count].
- Length: Length of the trail [pixels].
- Angle: Angle from the +x-axis [radians].
Definition at line 95 of file VeresModel.cc.
◆ computeModelImage()
Compute an image for a trail generated from the Veres model.
Definition at line 132 of file VeresModel.cc.
◆ getSigma()
double lsst::meas::extensions::trailedSources::VeresModel::getSigma |
( |
| ) |
const |
|
inlinenoexcept |
◆ gradient()
std::vector< double > lsst::meas::extensions::trailedSources::VeresModel::gradient |
( |
std::vector< double > const & | params | ) |
const |
Compute the gradient of chi-squared of the model given the data.
- Parameters
-
- Returns
- The gradient of chi-squared of the model with respect to the model parameters.
- Note
- The params vector contains the following model parameters:
- Centroid x: X-coordinate of the centroid in given image [pixels].
- Centroid y: Y-coordinate of the centroid in given image [pixels].
- Flux: Total flux in the trail [count].
- Length: Length of the trail [pixels].
- Angle: Angle from the +x-axis [radians].
Definition at line 70 of file VeresModel.cc.
◆ operator()()
double lsst::meas::extensions::trailedSources::VeresModel::operator() |
( |
std::vector< double > const & | params | ) |
const |
Compute chi-squared of the model given the data.
- Parameters
-
- Returns
- The chi-squared of the model.
- Note
- The params vector contains the following model parameters:
- Centroid x: X-coordinate of the centroid in given image [pixels].
- Centroid y: Y-coordinate of the centroid in given image [pixels].
- Flux: Total flux in the trail [count].
- Length: Length of the trail [pixels].
- Angle: Angle from the +x-axis [radians].
Definition at line 46 of file VeresModel.cc.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: