lsst.shapelet
20.0.0-2-gf072044+f47236d43c
|
Go to the documentation of this file.
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)
int computeOrder(int size)
Infer the order of a shapelet expansion from the number of coefficients.
ndarray::Array< double, 1 > Array1d
Typedef for a commonly-used array type.
@ LAGUERRE
Polar shapelets or Gauss-Laguerre functions, as defined in Bernstein and Jarvis, 2002.
afw::geom::ellipses::Quadrupole EllipseCore
int computeSize(int order)
Return the size of the coefficient vector for the given order.
double rationalSqrt(int n, int d)
Compute the square root of a rational number i.e. sqrt(n/d)
@ HERMITE
Cartesian shapelets or Gauss-Hermite functions, as defined in Refregier, 2003.
#define LSST_EXCEPT(type,...)
double intSqrt(int n)
Compute the square root of an integer number.
double const BASIS_NORMALIZATION
Normalization factor for 1-d orthonormal shapelets: pi^(-1/4)
int computeOffset(int order)
Return the offset of the given order in a coefficient vector.