25 #ifndef LSST_AFW_MATH_SHAPELETS_CONSTANTS_H 26 #define LSST_AFW_MATH_SHAPELETS_CONSTANTS_H 40 namespace lsst {
namespace shapelet {
105 int order = (
std::sqrt(8*size + 1) - 3)/2;
109 "Invalid size for shapelet coefficient matrix" 135 #endif // !defined(LSST_AFW_MATH_SHAPELETS_CONSTANTS_H) An ellipse core with quadrupole moments as parameters.
ndarray::Array< double, 1 > Array1d
Typedef for a commonly-used array type.
afw::geom::ellipses::Quadrupole EllipseCore
int computeSize(int order)
Return the size of the coefficient vector for the given order.
Polar shapelets or Gauss-Laguerre functions, as defined in Bernstein and Jarvis, 2002.
A base class for image defects.
int computeOrder(int size)
Infer the order of a shapelet expansion from the number of coefficients.
Cartesian shapelets or Gauss-Hermite functions, as defined in Refregier, 2003.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
double const BASIS_NORMALIZATION
Normalization factor for 1-d orthonormal shapelets: pi^(-1/4)
double intSqrt(int n)
Compute the square root of an integer number.
Reports invalid arguments.
int computeOffset(int order)
Return the offset of the given order in a coefficient vector.
double rationalSqrt(int n, int d)
Compute the square root of a rational number i.e. sqrt(n/d)