Loading [MathJax]/extensions/tex2jax.js
LSST Applications g044012fb7c+2a65cdf098,g04a91732dc+10fc851f12,g07dc498a13+195d1f135d,g1409bbee79+195d1f135d,g1a7e361dbc+195d1f135d,g1fd858c14a+8f3fe8f5cb,g2179890f76+6cf9093de3,g35bb328faa+0eb18584fe,g3bd4b5ce2c+c032696bd5,g3fa7bbdb64+d4f98599f0,g4e0f332c67+976ceb6bc8,g53246c7159+0eb18584fe,g5477a8d5ce+51234355ef,g60b5630c4e+08fbe2cc28,g68385bb32d+f37fe42b18,g78460c75b0+85633614c8,g786e29fd12+02b9b86fc9,g8852436030+270ef6db90,g89139ef638+195d1f135d,g8b49a6ea8e+08fbe2cc28,g9125e01d80+0eb18584fe,g9583089f3b+08fbe2cc28,g974caa22f6+0eb18584fe,g989de1cb63+195d1f135d,g9f33ca652e+5ce2034648,gaaedd4e678+195d1f135d,gabe3b4be73+543c3c03c9,gb1101e3267+26daace539,gb58c049af0+492386d360,gc99c83e5f0+a513197d39,gcf25f946ba+270ef6db90,gd6cbbdb0b4+3fef02d88a,gde0f65d7ad+3e62fa8f41,ge278dab8ac+ae64226a64,ge673f9641d+e40ad9942e,geab183fbe5+08fbe2cc28,gfba249425e+0eb18584fe,gfe7187db8c+c81932c5f4,w.2025.06
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
lsst::shapelet::MultiShapeletFunctionEvaluator Class Reference

Evaluates a MultiShapeletFunction. More...

#include <MultiShapeletFunction.h>

Public Types

typedef std::shared_ptr< MultiShapeletFunctionEvaluatorPtr
 
typedef std::shared_ptr< MultiShapeletFunctionEvaluator 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 (MultiShapeletFunction const &function)
 Update the evaluator from the given function.
 
 MultiShapeletFunctionEvaluator (MultiShapeletFunction const &function)
 Construct an evaluator for the given function.
 

Detailed Description

Evaluates a MultiShapeletFunction.

This is distinct from MultiShapeletFunction to allow the evaluator to construct temporaries and allocate workspace that will be reused when evaluating at multiple points.

A MultiShapeletFunctionEvaluator is invalidated whenever the MultiShapeletFunction it was constructed from is modified.

Definition at line 93 of file MultiShapeletFunction.h.

Member Typedef Documentation

◆ ConstPtr

◆ Ptr

Constructor & Destructor Documentation

◆ MultiShapeletFunctionEvaluator()

lsst::shapelet::MultiShapeletFunctionEvaluator::MultiShapeletFunctionEvaluator ( MultiShapeletFunction const & function)
explicit

Construct an evaluator for the given function.

Member Function Documentation

◆ addToImage() [1/2]

void lsst::shapelet::MultiShapeletFunctionEvaluator::addToImage ( afw::image::Image< double > & image) const
inline

Evaluate the function on the given image.

Definition at line 123 of file MultiShapeletFunction.h.

123 {
124 addToImage(image.getArray(), image.getXY0());
125 }
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.

◆ addToImage() [2/2]

void lsst::shapelet::MultiShapeletFunctionEvaluator::addToImage ( ndarray::Array< double, 2, 1 > const & array,
geom::Point2I const & xy0 = geom::Point2I() ) const

Add the function to the given image-like array.

◆ computeMoments()

afw::geom::ellipses::Ellipse lsst::shapelet::MultiShapeletFunctionEvaluator::computeMoments ( ) const

Return the unweighted dipole and quadrupole moments of the function as an ellipse.

◆ integrate()

double lsst::shapelet::MultiShapeletFunctionEvaluator::integrate ( ) const

Compute the definite integral or integral moments.

◆ operator()() [1/4]

double lsst::shapelet::MultiShapeletFunctionEvaluator::operator() ( double x,
double y ) const
inline

Evaluate at the given point.

Definition at line 100 of file MultiShapeletFunction.h.

100 {
101 return this->operator()(geom::Point2D(x, y));
102 }
int y
Definition SpanSet.cc:48
double operator()(double x, double y) const
Evaluate at the given point.

◆ operator()() [2/4]

double lsst::shapelet::MultiShapeletFunctionEvaluator::operator() ( geom::Extent2D const & point) const

Evaluate at the given point.

◆ operator()() [3/4]

double lsst::shapelet::MultiShapeletFunctionEvaluator::operator() ( geom::Point2D const & point) const

Evaluate at the given point.

◆ operator()() [4/4]

ndarray::Array< double, 1, 1 > lsst::shapelet::MultiShapeletFunctionEvaluator::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.

◆ update()

void lsst::shapelet::MultiShapeletFunctionEvaluator::update ( MultiShapeletFunction const & function)

Update the evaluator from the given function.


The documentation for this class was generated from the following file: