Class BasisEvaluator

Class Documentation

class BasisEvaluator

Evaluates a standard shapelet Basis.

Public Functions

BasisEvaluator(int order, BasisTypeEnum basisType)

Construct an evaluator for a shapelet basis with the given order and type.

int getOrder() const

Return the order of the shapelet expansion.

BasisTypeEnum getBasisType() const

Return the type of the shapelet expansion.

void fillEvaluation(Array1d const &array, double x, double y, Array1d const &dx = Array1d(), Array1d const &dy = Array1d()) const

Fill an array with an evaluation vector that can be used to evaluate a shapelet model at a point.

Parameters
  • [out] array: Output array. Must be preallocated to the correct size.

  • [in] x: x coordinate at which to evaluate the basis.

  • [in] y: y coordinate at which to evaluate the basis.

  • [out] dx: Optional output array for the derivative w.r.t. the x coordinate.

  • [out] dy: Optional output array for the derivative w.r.t. the y coordinate.

void fillEvaluation(Array1d const &array, geom::Point2D const &point, Array1d const &dx = Array1d(), Array1d const &dy = Array1d()) const

Fill an array with an evaluation vector that can be used to evaluate a shapelet model at a point.

Parameters
  • [out] array: Output array. Must be preallocated to the correct size.

  • [in] point: Coordinates at which to evaluate the basis.

  • [out] dx: Optional output array for the derivative w.r.t. the x coordinate.

  • [out] dy: Optional output array for the derivative w.r.t. the y coordinate.

void fillEvaluation(Array1d const &array, geom::Extent2D const &point, Array1d const &dx = Array1d(), Array1d const &dy = Array1d()) const

Fill an array with an evaluation vector that can be used to evaluate a shapelet model at a point.

Parameters
  • [out] array: Output array. Must be preallocated to the correct size.

  • [in] point: Coordinates at which to evaluate the basis.

  • [out] dx: Optional output array for the derivative w.r.t. the x coordinate.

  • [out] dy: Optional output array for the derivative w.r.t. the y coordinate.

void fillIntegration(Array1d const &array, int xMoment = 0, int yMoment = 0) const

Fill an array with an integration vector that can be used to integrate a shapelet model.

Parameters
  • [out] array: Output array. Must be preallocated to the correct size.

  • [in] xMoment: Integrate the expansion multiplied by this power of x.

  • [in] yMoment: Integrate the expansion multiplied by this power of y.