Skip to content
Snippets Groups Projects
IBackgroundFunction.h 1.11 KiB
Newer Older
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2009 ISIS Rutherford Appleton Laboratory UKRI,
//     NScD Oak Ridge National Laboratory, European Spallation Source
//     & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +

//----------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------
#include "MantidAPI/IFunctionWithLocation.h"
namespace Mantid {
namespace API {
/** An interface to a background function. This interface is just
    a copy of the IFunctionWithLocation interface for now.

    @author Anders Markvardsen, ISIS, RAL
    @date 2/11/2009
*/
class DLLExport IBackgroundFunction : public IFunctionWithLocation {
  /// Fits the function
  /// @param X :: a vector of x values
  /// @param Y :: a matching vector of Y values
  virtual void fit(const std::vector<double> &X,
                   const std::vector<double> &Y) = 0;
using IBackgroundFunction_sptr = boost::shared_ptr<IBackgroundFunction>;
} // namespace API
} // namespace Mantid