LSST Applications 28.0.0,g04a91732dc+39818242a5,g07dc498a13+fb7087bc2f,g1409bbee79+fb7087bc2f,g1a7e361dbc+fb7087bc2f,g1fd858c14a+9df69a7481,g2f761dc78e+ee57be4232,g33399d78f5+cf93122263,g35bb328faa+e55fef2c71,g3bd4b5ce2c+ef8ce2d39b,g3dabb73f91+b2cce74dd5,g53246c7159+e55fef2c71,g60b5630c4e+ee57be4232,g78460c75b0+8427c4cc8f,g786e29fd12+307f82e6af,g8534526c7b+8e1c6b434f,g89139ef638+fb7087bc2f,g8b49a6ea8e+ee57be4232,g9125e01d80+e55fef2c71,g989de1cb63+fb7087bc2f,g9f33ca652e+f0b312e6e5,gaaedd4e678+fb7087bc2f,gabe3b4be73+9c0c3c7524,gb1101e3267+d435cc4fc1,gb58c049af0+28045f66fd,gca43fec769+e55fef2c71,gcb3d4e2347+ddf8d02623,gce7788e931+df5c03e1ec,gcf25f946ba+cf93122263,gd6cbbdb0b4+f6e5445f66,gdd34b64689+048800d0b1,gdd9490a0bf+839504dd15,gde0f65d7ad+4bc93f0fff,ge278dab8ac+b4c2c8faf7,geab183fbe5+ee57be4232,gec3dcf77f0+e7bc33f3ea,gecb8035dfe+1f480bec5e,gf58bf46354+e55fef2c71,gfe7187db8c+5ba3c588d8
LSST Data Management Base Package
|
Evaluates a ShapeletFunction. More...
#include <ShapeletFunction.h>
Public Types | |
typedef std::shared_ptr< ShapeletFunctionEvaluator > | Ptr |
typedef std::shared_ptr< ShapeletFunctionEvaluator const > | ConstPtr |
Public Member Functions | |
double | operator() (double x, double y) const |
Evaluate at the given point. | |
double | operator() (geom::Point2D const &point) const |
Evaluate at the given point. | |
double | operator() (geom::Extent2D const &point) const |
Evaluate at the given point. | |
ndarray::Array< double, 1, 1 > | operator() (ndarray::Array< double const, 1 > const &x, ndarray::Array< double const, 1 > const &y) const |
Evaluate at the given points, returning a newly-allocated array. | |
void | addToImage (ndarray::Array< double, 2, 1 > const &array, geom::Point2I const &xy0=geom::Point2I()) const |
Add the function to the given image-like array. | |
void | addToImage (afw::image::Image< double > &image) const |
Evaluate the function on the given image. | |
double | integrate () const |
Compute the definite integral or integral moments. | |
afw::geom::ellipses::Ellipse | computeMoments () const |
Return the unweighted dipole and quadrupole moments of the function as an ellipse. | |
void | update (ShapeletFunction const &function) |
Update the evaluator from the given function. | |
ShapeletFunctionEvaluator (ShapeletFunction const &function) | |
Construct an evaluator for the given function. | |
Friends | |
class | MultiShapeletFunctionEvaluator |
Evaluates a ShapeletFunction.
This is distinct from ShapeletFunction to allow the evaluator to construct temporaries and allocate workspace that will be reused when evaluating at multiple points.
A ShapeletFunctionEvaluator is invalidated whenever the ShapeletFunction it was constructed from is modified.
Definition at line 177 of file ShapeletFunction.h.
typedef std::shared_ptr<ShapeletFunctionEvaluator const> lsst::shapelet::ShapeletFunctionEvaluator::ConstPtr |
Definition at line 181 of file ShapeletFunction.h.
Definition at line 180 of file ShapeletFunction.h.
|
explicit |
Construct an evaluator for the given function.
|
inline |
Evaluate the function on the given image.
Definition at line 211 of file ShapeletFunction.h.
void lsst::shapelet::ShapeletFunctionEvaluator::addToImage | ( | ndarray::Array< double, 2, 1 > const & | array, |
geom::Point2I const & | xy0 = geom::Point2I() ) const |
Add the function to the given image-like array.
afw::geom::ellipses::Ellipse lsst::shapelet::ShapeletFunctionEvaluator::computeMoments | ( | ) | const |
Return the unweighted dipole and quadrupole moments of the function as an ellipse.
|
inline |
Compute the definite integral or integral moments.
Definition at line 216 of file ShapeletFunction.h.
|
inline |
Evaluate at the given point.
Definition at line 184 of file ShapeletFunction.h.
|
inline |
Evaluate at the given point.
Definition at line 194 of file ShapeletFunction.h.
|
inline |
Evaluate at the given point.
Definition at line 189 of file ShapeletFunction.h.
ndarray::Array< double, 1, 1 > lsst::shapelet::ShapeletFunctionEvaluator::operator() | ( | ndarray::Array< double const, 1 > const & | x, |
ndarray::Array< double const, 1 > const & | y ) const |
Evaluate at the given points, returning a newly-allocated array.
void lsst::shapelet::ShapeletFunctionEvaluator::update | ( | ShapeletFunction const & | function | ) |
Update the evaluator from the given function.
|
friend |
Definition at line 231 of file ShapeletFunction.h.