LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
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.
A base class for image defects.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
An ellipse core with quadrupole moments as parameters.
Reports invalid arguments.
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.