Class ApproximateControl

Class Documentation

class ApproximateControl

Control how to make an approximation

Note

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

Public Types

enum Style

Choose the type of approximation to use.

Values:

UNKNOWN = -1
CHEBYSHEV

Use a 2-D Chebyshev polynomial.

NUM_STYLES

Public Functions

ApproximateControl(Style style, int orderX, int orderY = -1, bool weighting = true)

ctor

Parameters
  • style: Type of approximation

  • orderX: Order of approximation to use in x-direction

  • orderY: Order of approximation to use in y-direction

  • weighting: Use inverse variance weighting?

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.