LSSTApplications  1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Private Attributes | 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 More...
 
Style getStyle () const
 Return the Style. More...
 
int getOrderX () const
 Return the order of approximation to use in the x-direction. More...
 
int getOrderY () const
 Return the order of approximation to use in the y-direction. More...
 
bool getWeighting () const
 Return whether inverse variance weighting will be used in calculation. More...
 

Private Attributes

Style const _style
 
int const _orderX
 
int const _orderY
 
bool const _weighting
 

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 47 of file Approximate.h.

Member Enumeration Documentation

Choose the type of approximation to use.

Enumerator
UNKNOWN 
CHEBYSHEV 

Use a 2-D Chebyshev polynomial.

NUM_STYLES 

Definition at line 50 of file Approximate.h.

Constructor & Destructor Documentation

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 48 of file Approximate.cc.

52  :
53  _style(style), _orderX(orderX), _orderY(orderY < 0 ? orderX : orderY), _weighting(weighting) {
54  if (_orderX != _orderY) {
55  throw LSST_EXCEPT(lsst::pex::exceptions::InvalidParameterError,
56  str(boost::format("X- and Y-orders must be equal (%d != %d) "
57  "due to a limitation in math::Chebyshev1Function2")
58  % _orderX % _orderY));
59  }
60 }
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46

Member Function Documentation

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

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

Definition at line 60 of file Approximate.h.

60 { return _orderX; }
int lsst.afw.math::ApproximateControl::getOrderY ( ) const
inline

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

Definition at line 62 of file Approximate.h.

62 { return _orderY; }
Style lsst.afw.math::ApproximateControl::getStyle ( ) const
inline

Return the Style.

Definition at line 58 of file Approximate.h.

58 { return _style; }
bool lsst.afw.math::ApproximateControl::getWeighting ( ) const
inline

Return whether inverse variance weighting will be used in calculation.

Definition at line 64 of file Approximate.h.

64 { return _weighting; }

Member Data Documentation

int const lsst.afw.math::ApproximateControl::_orderX
private

Definition at line 67 of file Approximate.h.

int const lsst.afw.math::ApproximateControl::_orderY
private

Definition at line 68 of file Approximate.h.

Style const lsst.afw.math::ApproximateControl::_style
private

Definition at line 66 of file Approximate.h.

bool const lsst.afw.math::ApproximateControl::_weighting
private

Definition at line 69 of file Approximate.h.


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