Mantid
Loading...
Searching...
No Matches
Keren.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 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
11#include "MantidCurveFitting/DllConfig.h"
12
13namespace Mantid {
14namespace CurveFitting {
15namespace Functions {
16
22class MANTID_CURVEFITTING_DLL Keren : public API::ParamFunction, public API::IFunction1D {
23
24public:
26 std::string name() const override { return "Keren"; }
28 const std::string category() const override { return "Muon\\MuonSpecific"; }
30 void setActiveParameter(size_t i, double value) override;
32 double activeParameter(size_t i) const override;
33
34protected:
36 void function1D(double *out, const double *xValues, const size_t nData) const override;
38 void init() override;
40 double polarization(const double delta, const double larmor, const double fluct, const double time) const;
42 double relaxation(const double delta, const double larmor, const double fluct, const double time) const;
43};
44
45} // namespace Functions
46} // namespace CurveFitting
47} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
This is a specialization of IFunction for functions of one real argument.
Definition: IFunction1D.h:43
Implements the part of IFunction interface dealing with parameters.
Definition: ParamFunction.h:33
Keren : Keren fitting function for muon scientists.
Definition: Keren.h:22
const std::string category() const override
Category for function.
Definition: Keren.h:28
std::string name() const override
Name of function.
Definition: Keren.h:26
Helper class which provides the Collimation Length for SANS instruments.