Mantid
Loading...
Searching...
No Matches
FlatBackground.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
10#include "MantidKernel/System.h"
11
12namespace Mantid {
13namespace CurveFitting {
14namespace Functions {
15
20class MANTID_CURVEFITTING_DLL FlatBackground : public BackgroundFunction {
21public:
22 std::string name() const override;
23 void function1D(double *out, const double *xValues, const size_t nData) const override;
24 void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override;
25
26private:
27 void init() override;
29 void histogram1D(double *out, double left, const double *right, const size_t nBins) const override;
31 void histogramDerivative1D(API::Jacobian *jacobian, double left, const double *right,
32 const size_t nBins) const override;
33};
34
35} // namespace Functions
36} // namespace CurveFitting
37} // namespace Mantid
double left
Definition: LineProfile.cpp:80
double right
Definition: LineProfile.cpp:81
Represents the Jacobian in IFitFunction::functionDeriv.
Definition: Jacobian.h:22
FlatBackground : TODO: DESCRIPTION.
Helper class which provides the Collimation Length for SANS instruments.