Mantid
Loading...
Searching...
No Matches
CrystalFieldSusceptibility.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
12
13namespace Mantid {
14namespace CurveFitting {
15namespace Functions {
16
23public:
25 void function1D(double *out, const double *xValues, const size_t nData) const override;
26
27protected:
30 mutable int m_nre;
31};
32
33class MANTID_CURVEFITTING_DLL CrystalFieldSusceptibility : public CrystalFieldPeaksBase,
35public:
37 std::string name() const override { return "CrystalFieldSusceptibility"; }
38 const std::string category() const override { return "General"; }
39 void function1D(double *out, const double *xValues, const size_t nData) const override;
40 void setEigensystem(const DoubleFortranVector &en, const ComplexFortranMatrix &wf, const int nre);
41
42private:
44};
45
46class MANTID_CURVEFITTING_DLL CrystalFieldSusceptibilityCalculation : public API::ParamFunction,
48public:
50 std::string name() const override { return "chi"; }
51 const std::string category() const override { return "General"; }
52 void setEigensystem(const DoubleFortranVector &en, const ComplexFortranMatrix &wf, const int nre);
53};
54
55} // namespace Functions
56} // namespace CurveFitting
57} // namespace Mantid
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
CrystalFieldPeaks is a function that calculates crystal field peak positions and intensities.
CrystalFieldSusceptibility is a function that calculates the molar magnetic susceptibility (in cm^3/m...
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.
std::string name() const override
Returns the function's name.
const std::string category() const override
The categories the Fit function belong to.
std::string name() const override
Returns the function's name.
Helper class which provides the Collimation Length for SANS instruments.