lsst.shapelet  13.0-5-gde6b2c8+14
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Types | Public Member Functions | List of all members
lsst::shapelet::MultiShapeletFunctionEvaluator Class Reference

Evaluates a MultiShapeletFunction. More...

#include <MultiShapeletFunction.h>

Public Types

typedef std::shared_ptr
< MultiShapeletFunctionEvaluator
Ptr
 
typedef std::shared_ptr
< MultiShapeletFunctionEvaluator
const > 
ConstPtr
 

Public Member Functions

double operator() (double x, double y) const
 Evaluate at the given point. More...
 
double operator() (afw::geom::Point2D const &point) const
 Evaluate at the given point. More...
 
double operator() (afw::geom::Extent2D const &point) const
 Evaluate at the given point. More...
 
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. More...
 
void addToImage (ndarray::Array< double, 2, 1 > const &array, afw::geom::Point2I const &xy0=afw::geom::Point2I()) const
 Add the function to the given image-like array. More...
 
void addToImage (afw::image::Image< double > &image) const
 Evaluate the function on the given image. More...
 
double integrate () const
 Compute the definite integral or integral moments. More...
 
afw::geom::ellipses::Ellipse computeMoments () const
 Return the unweighted dipole and quadrupole moments of the function as an ellipse. More...
 
void update (MultiShapeletFunction const &function)
 Update the evaluator from the given function. More...
 
 MultiShapeletFunctionEvaluator (MultiShapeletFunction const &function)
 Construct an evaluator for the given function. More...
 

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

Definition at line 97 of file MultiShapeletFunction.h.

Definition at line 96 of file MultiShapeletFunction.h.

Constructor & Destructor Documentation

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

Construct an evaluator for the given function.

Member Function Documentation

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

Add the function to the given image-like array.

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.

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

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

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

Compute the definite integral or integral moments.

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

Evaluate at the given point.

Definition at line 100 of file MultiShapeletFunction.h.

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

Evaluate at the given point.

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

Evaluate at the given point.

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.

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: