Mantid
Loading...
Searching...
No Matches
ChebyshevPolynomial.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//-----------------------------------------------------------------------------
10// Includes
11//-----------------------------------------------------------------------------
12#include "MantidKernel/DllConfig.h"
13
14#include <cstddef>
15
16namespace Mantid {
17namespace Kernel {
18
24struct MANTID_KERNEL_DLL ChebyshevPolynomial {
25 double operator()(const std::size_t n, const double x);
26};
27} // namespace Kernel
28} // namespace Mantid
Helper class which provides the Collimation Length for SANS instruments.
Evaluates a single Chebyshev polynomial (first kind) for x in range [-1,1].