LSST Applications g063fba187b+eddd1b24d7,g0f08755f38+4a855ab515,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+062a45aee3,g1dcb35cd9c+45d3fa5522,g20f6ffc8e0+4a855ab515,g217e2c1bcf+f55e51b560,g28da252d5a+7d8e536cc7,g2bbee38e9b+2d92fc7d83,g2bc492864f+2d92fc7d83,g3156d2b45e+6e55a43351,g32e5bea42b+625186cc6b,g347aa1857d+2d92fc7d83,g35bb328faa+a8ce1bb630,g3a166c0a6a+2d92fc7d83,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+1af189bab1,g7af13505b9+7b6a50a2f8,g80478fca09+6174b7f182,g82479be7b0+5b71efbaf0,g858d7b2824+4a855ab515,g9125e01d80+a8ce1bb630,ga5288a1d22+61618a97c4,gb58c049af0+d64f4d3760,gc28159a63d+2d92fc7d83,gc5452a3dca+f4add4ffd5,gcab2d0539d+d9f5af7f69,gcf0d15dbbd+6c7e0a19ec,gda6a2b7d83+6c7e0a19ec,gdaeeff99f8+1711a396fd,ge79ae78c31+2d92fc7d83,gef2f8181fd+55fff6f525,gf0baf85859+c1f95f4921,gfa517265be+4a855ab515,gfa999e8aa5+17cd334064,w.2024.51
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
lsst::afw::math::ApproximateControl Class Reference

Control how to make an approximation. More...

#include <Approximate.h>

Public Types

enum  Style { UNKNOWN = -1 , CHEBYSHEV , NUM_STYLES }
 Choose the type of approximation to use. More...
 

Public Member Functions

 ApproximateControl (Style style, int orderX, int orderY=-1, bool weighting=true)
 ctor
 
Style getStyle () const
 Return the Style.
 
void setStyle (Style const style)
 Set the Style.
 
int getOrderX () const
 Return the order of approximation to use in the x-direction.
 
void setOrderX (int const orderX)
 Set the order of approximation to use in the x-direction.
 
int getOrderY () const
 Return the order of approximation to use in the y-direction.
 
void setOrderY (int const orderY)
 Set the order of approximation to use in the y-direction.
 
bool getWeighting () const
 Return whether inverse variance weighting will be used in calculation.
 
void setWeighting (bool const weighting)
 Set whether inverse variance weighting will be used in calculation.
 

Detailed Description

Control how to make an approximation.

Note
the x- and y-order must be the same, due to a limitation of Chebyshev1Function2

Definition at line 48 of file Approximate.h.

Member Enumeration Documentation

◆ Style

Choose the type of approximation to use.

Enumerator
UNKNOWN 
CHEBYSHEV 

Use a 2-D Chebyshev polynomial.

NUM_STYLES 

Definition at line 51 of file Approximate.h.

Constructor & Destructor Documentation

◆ ApproximateControl()

lsst::afw::math::ApproximateControl::ApproximateControl ( Style style,
int orderX,
int orderY = -1,
bool weighting = true )

ctor

Parameters
styleType of approximation
orderXOrder of approximation to use in x-direction
orderYOrder of approximation to use in y-direction
weightingUse inverse variance weighting?

Definition at line 46 of file Approximate.cc.

47 : _style(style), _orderX(orderX), _orderY(orderY < 0 ? orderX : orderY), _weighting(weighting) {
48 if (_orderX != _orderY) {
50 str(boost::format("X- and Y-orders must be equal (%d != %d) "
51 "due to a limitation in math::Chebyshev1Function2") %
52 _orderX % _orderY));
53 }
54}
table::Key< int > orderX
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition Exception.h:48
Reports invalid arguments.
Definition Runtime.h:66

Member Function Documentation

◆ getOrderX()

int lsst::afw::math::ApproximateControl::getOrderX ( ) const
inline

Return the order of approximation to use in the x-direction.

Definition at line 70 of file Approximate.h.

70{ return _orderX; }

◆ getOrderY()

int lsst::afw::math::ApproximateControl::getOrderY ( ) const
inline

Return the order of approximation to use in the y-direction.

Definition at line 74 of file Approximate.h.

74{ return _orderY; }

◆ getStyle()

Style lsst::afw::math::ApproximateControl::getStyle ( ) const
inline

Return the Style.

Definition at line 66 of file Approximate.h.

66{ return _style; }

◆ getWeighting()

bool lsst::afw::math::ApproximateControl::getWeighting ( ) const
inline

Return whether inverse variance weighting will be used in calculation.

Definition at line 78 of file Approximate.h.

78{ return _weighting; }

◆ setOrderX()

void lsst::afw::math::ApproximateControl::setOrderX ( int const orderX)
inline

Set the order of approximation to use in the x-direction.

Definition at line 72 of file Approximate.h.

72{ _orderX = orderX; }

◆ setOrderY()

void lsst::afw::math::ApproximateControl::setOrderY ( int const orderY)
inline

Set the order of approximation to use in the y-direction.

Definition at line 76 of file Approximate.h.

76{ _orderY = orderY; }

◆ setStyle()

void lsst::afw::math::ApproximateControl::setStyle ( Style const style)
inline

Set the Style.

Definition at line 68 of file Approximate.h.

68{ _style = style; }

◆ setWeighting()

void lsst::afw::math::ApproximateControl::setWeighting ( bool const weighting)
inline

Set whether inverse variance weighting will be used in calculation.

Definition at line 80 of file Approximate.h.

80{ _weighting = weighting; }

The documentation for this class was generated from the following files: