ATLAS Offline Software
Public Member Functions | List of all members
MuonCalib::ChebyshevPolynomial Class Reference

#include <ChebyshevPolynomial.h>

Inheritance diagram for MuonCalib::ChebyshevPolynomial:
Collaboration diagram for MuonCalib::ChebyshevPolynomial:

Public Member Functions

 ChebyshevPolynomial (void)
 default constructor More...
 
double value (const int &k, const double &x) const
 get the value of the Chebyshev polynomial of k-th order at x, (-1 <= x <= 1) More...
 

Detailed Description

This class class provides a Chebyshev polynomial of order k.

Author
Olive.nosp@m.r.Ko.nosp@m.rtner.nosp@m.@cer.nosp@m.n.ch
Date
07.04.2005

Definition at line 29 of file ChebyshevPolynomial.h.

Constructor & Destructor Documentation

◆ ChebyshevPolynomial()

MuonCalib::ChebyshevPolynomial::ChebyshevPolynomial ( void  )
inline

default constructor

Definition at line 33 of file ChebyshevPolynomial.h.

Member Function Documentation

◆ value()

double MuonCalib::ChebyshevPolynomial::value ( const int &  k,
const double &  x 
) const
virtual

get the value of the Chebyshev polynomial of k-th order at x, (-1 <= x <= 1)

Implements MuonCalib::BaseFunction.

Definition at line 23 of file ChebyshevPolynomial.cxx.

23  {
24 
25  switch(order) {
26  case 0:
27  return 1;
28  break;
29  case 1:
30  return x;
31  break;
32  case 2:
33  default:
34  return 2.0*x*value(order-1, x) - value(order-2, x);
35  break;
36  }
37 
38  }

The documentation for this class was generated from the following files:
x
#define x
mc.order
order
Configure Herwig7.
Definition: mc.Herwig7_Dijet.py:12
MuonCalib::ChebyshevPolynomial::value
double value(const int &k, const double &x) const
get the value of the Chebyshev polynomial of k-th order at x, (-1 <= x <= 1)
Definition: ChebyshevPolynomial.cxx:23