LSSTApplications
19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
|
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.