Mantid
Loading...
Searching...
No Matches
LogNormal.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 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//----------------------------------------------------------------------
14#include "MantidCurveFitting/DllConfig.h"
15
16namespace Mantid {
17namespace CurveFitting {
18namespace Functions {
25class MANTID_CURVEFITTING_DLL LogNormal : public API::ParamFunction, public API::IFunction1D {
26public:
28 LogNormal();
29
31 std::string name() const override { return "LogNormal"; }
32 const std::string category() const override { return "Peak"; }
33
34protected:
35 void function1D(double *out, const double *xValues, const size_t nData) const override;
36 void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override;
37};
38
39} // namespace Functions
40} // namespace CurveFitting
41} // namespace Mantid
This is a specialization of IFunction for functions of one real argument.
Definition: IFunction1D.h:43
Represents the Jacobian in IFitFunction::functionDeriv.
Definition: Jacobian.h:22
Implements the part of IFunction interface dealing with parameters.
Definition: ParamFunction.h:33
Provide Log Normal function: h*exp(-(log(x)-t)^2 / (2*b^2) )/x.
Definition: LogNormal.h:25
void function1D(double *out, const double *xValues, const size_t nData) const override
Function you want to fit to.
const std::string category() const override
The categories the Fit function belong to.
Definition: LogNormal.h:32
std::string name() const override
overwrite IFunction base class methods
Definition: LogNormal.h:31
void functionDeriv1D(API::Jacobian *out, const double *xValues, const size_t nData) override
Derivatives of function with respect to active parameters.
Helper class which provides the Collimation Length for SANS instruments.