LSST Applications
21.0.0-147-g0e635eb1+1acddb5be5,22.0.0+052faf71bd,22.0.0+1ea9a8b2b2,22.0.0+6312710a6c,22.0.0+729191ecac,22.0.0+7589c3a021,22.0.0+9f079a9461,22.0.1-1-g7d6de66+b8044ec9de,22.0.1-1-g87000a6+536b1ee016,22.0.1-1-g8e32f31+6312710a6c,22.0.1-10-gd060f87+016f7cdc03,22.0.1-12-g9c3108e+df145f6f68,22.0.1-16-g314fa6d+c825727ab8,22.0.1-19-g93a5c75+d23f2fb6d8,22.0.1-19-gb93eaa13+aab3ef7709,22.0.1-2-g8ef0a89+b8044ec9de,22.0.1-2-g92698f7+9f079a9461,22.0.1-2-ga9b0f51+052faf71bd,22.0.1-2-gac51dbf+052faf71bd,22.0.1-2-gb66926d+6312710a6c,22.0.1-2-gcb770ba+09e3807989,22.0.1-20-g32debb5+b8044ec9de,22.0.1-23-gc2439a9a+fb0756638e,22.0.1-3-g496fd5d+09117f784f,22.0.1-3-g59f966b+1e6ba2c031,22.0.1-3-g849a1b8+f8b568069f,22.0.1-3-gaaec9c0+c5c846a8b1,22.0.1-32-g5ddfab5d3+60ce4897b0,22.0.1-4-g037fbe1+64e601228d,22.0.1-4-g8623105+b8044ec9de,22.0.1-5-g096abc9+d18c45d440,22.0.1-5-g15c806e+57f5c03693,22.0.1-7-gba73697+57f5c03693,master-g6e05de7fdc+c1283a92b8,master-g72cdda8301+729191ecac,w.2021.39
LSST Data Management Base Package
|
A basis formed from a linear combination of shapelet bases that differ only in radius. More...
#include <MultiShapeletBasis.h>
Public Types | |
typedef MultiShapeletBasisComponent | Component |
typedef std::vector< Component > | ComponentVector |
typedef ComponentVector::const_iterator | Iterator |
Public Member Functions | |
MultiShapeletBasis (int size) | |
Construct a MultiShapeletBasis with the given number of elements (i.e. free amplitudes). More... | |
int | getSize () const |
Return the number of elements (i.e. free amplitudes) in the MultiShapeletBasis. More... | |
int | getComponentCount () const |
Return the number of components (distinct shapelet bases) in the MultiShapeletBasis. More... | |
Iterator | begin () const |
Iterator over the components (distinct shapelet bases) of the MultiShapeletBasis. More... | |
Iterator | end () const |
void | addComponent (double radius, int order, ndarray::Array< double const, 2, 2 > const &matrix) |
Add a new component (shapelet basis) to the MultiShapeletBasis. More... | |
void | scale (double factor) |
Multiply the radius of all basis elements by the given factor. More... | |
void | normalize () |
Rescale all matrices so each element has unit flux. More... | |
void | merge (MultiShapeletBasis const &other) |
Combine the given basis with this (in place), by appending its elements. More... | |
MultiShapeletFunction | makeFunction (afw::geom::ellipses::Ellipse const &ellipse, ndarray::Array< double const, 1, 1 > const &coefficients) const |
Create a MultiShapeletFunction from the basis. More... | |
A basis formed from a linear combination of shapelet bases that differ only in radius.
A MultiShapeletBasis can have many "components" (shapelet bases with different orders and radii), which are mapped via matrices into one or more "elements". It's common for a basis to have only one or two elements, representing a galaxy model that is a linear combination of one or two radial profiles. It's also common for most components to be zeroth order (Gaussians), as higher- order shapelet terms don't provide much of an advantage when approximating axisymmetric functions.
MultiShapeletBasis itself provides the interface to define these multi-Gaussian approximations and combine and refine them, and delegates the work of defining them to MultiShapeletFunction (via the makeFunction() method) and the MultiShapeletMatrixBuilder class. MultiShapeletFunction is a more user-friendly and versatile approach, intended for debugging and testing, while the MultiShapletMatrixBuilder approach is intended for performance-critical evaluation of PSF-convolved MultiShapeletBasis objects.
Definition at line 93 of file MultiShapeletBasis.h.
Definition at line 95 of file MultiShapeletBasis.h.
Definition at line 96 of file MultiShapeletBasis.h.
typedef ComponentVector::const_iterator lsst::shapelet::MultiShapeletBasis::Iterator |
Definition at line 97 of file MultiShapeletBasis.h.
|
explicit |
Construct a MultiShapeletBasis with the given number of elements (i.e. free amplitudes).
void lsst::shapelet::MultiShapeletBasis::addComponent | ( | double | radius, |
int | order, | ||
ndarray::Array< double const, 2, 2 > const & | matrix | ||
) |
Add a new component (shapelet basis) to the MultiShapeletBasis.
Should usually only be called by MultiShapeletBasis::addComponent.
[in] | radius | Radius of the shapelet expansion defined by this component. |
[in] | order | Order of the shapelet expansion. |
[in] | matrix | Matrix whose elements [i,j] map MultiShapeletBasis elements j to shapelet terms i; must have dimensions [computeSize(order), basis.getSize()], where "basis" is the MultiShapeletBasis this component is attached to. Will be deep-copied by the constructor. |
Note that matrix elements follow the amplitude convention defined by ShapeletFunction; values are proportional to flux, not surface brightness.
|
inline |
Iterator over the components (distinct shapelet bases) of the MultiShapeletBasis.
Definition at line 110 of file MultiShapeletBasis.h.
|
inline |
Definition at line 111 of file MultiShapeletBasis.h.
|
inline |
Return the number of components (distinct shapelet bases) in the MultiShapeletBasis.
Definition at line 106 of file MultiShapeletBasis.h.
|
inline |
Return the number of elements (i.e. free amplitudes) in the MultiShapeletBasis.
Definition at line 103 of file MultiShapeletBasis.h.
MultiShapeletFunction lsst::shapelet::MultiShapeletBasis::makeFunction | ( | afw::geom::ellipses::Ellipse const & | ellipse, |
ndarray::Array< double const, 1, 1 > const & | coefficients | ||
) | const |
Create a MultiShapeletFunction from the basis.
[in] | ellipse | Shapelet basis ellipse that will define the MultiShapeletFunction (will be scaled by the radius of each component). |
[in] | coefficients | Coefficients of the basis elements. |
void lsst::shapelet::MultiShapeletBasis::merge | ( | MultiShapeletBasis const & | other | ) |
Combine the given basis with this (in place), by appending its elements.
void lsst::shapelet::MultiShapeletBasis::normalize | ( | ) |
Rescale all matrices so each element has unit flux.
void lsst::shapelet::MultiShapeletBasis::scale | ( | double | factor | ) |
Multiply the radius of all basis elements by the given factor.