Mantid
Loading...
Searching...
No Matches
IBackgroundFunction.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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//----------------------------------------------------------------------
13
14namespace Mantid {
15namespace API {
23public:
27 virtual void fit(const std::vector<double> &X, const std::vector<double> &Y) = 0;
28};
29
30using IBackgroundFunction_sptr = std::shared_ptr<IBackgroundFunction>;
31
32} // namespace API
33} // namespace Mantid
An interface to a background function.
virtual void fit(const std::vector< double > &X, const std::vector< double > &Y)=0
Fits the function.
An interface to a function with location, which here means a function for which the user may ask what...
std::shared_ptr< IBackgroundFunction > IBackgroundFunction_sptr
Helper class which provides the Collimation Length for SANS instruments.