LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
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: