ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalib::SimplePolynomial Class Reference

This class provides the simple polynomials x^k (k=0, 1, ...) as base functions for fits. More...

#include <SimplePolynomial.h>

Inheritance diagram for MuonCalib::SimplePolynomial:
Collaboration diagram for MuonCalib::SimplePolynomial:

Public Member Functions

 SimplePolynomial ()=default
double value (const int k, const double x) const
 get the value of the k-th base function at x

Detailed Description

This class provides the simple polynomials x^k (k=0, 1, ...) as base functions for fits.

Definition at line 13 of file SimplePolynomial.h.

Constructor & Destructor Documentation

◆ SimplePolynomial()

MuonCalib::SimplePolynomial::SimplePolynomial ( )
default

Member Function Documentation

◆ value()

double SimplePolynomial::value ( const int k,
const double x ) const
virtual

get the value of the k-th base function at x

Implements MuonCalib::BaseFunction.

Definition at line 9 of file SimplePolynomial.cxx.

9 {
10 return std::pow(x, k);
11}
#define x

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