21 declareAttribute(
"Temperature",
Attribute(1.0));
22 declareParameter(
"IntensityScaling", 1.0,
"A scaling factor for peak intensities.");
53 size_t n = eExcitations.
size();
54 if (2 *
n > values.
size()) {
61 for (
size_t i = 0; i <
n; ++i) {
#define DECLARE_FUNCTION(classname)
Macro for declaring a new type of function to be used with the FunctionFactory.
Mantid::API::IFunction::Attribute Attribute
Represent a domain of a very general type.
A class to store values calculated by a function.
size_t size() const
Return the number of values.
void expand(size_t n)
Expand values to a new size, preserve stored values.
void setCalculated(double value)
set all calculated values to same number
IFunctionGeneral: a very general function definition.
double asDouble() const
Returns double value if attribute is a double, throws exception otherwise.
virtual Attribute getAttribute(const std::string &name) const
Return a value of attribute attName.
virtual double getParameter(size_t i) const =0
Get i-th parameter.
double get(const size_t i) const
Get an element.
size_t size() const
Size of the vector.
CrystalFieldPeaks is a function that calculates crystal field peak positions and intensities.
void calculateEigenSystem(DoubleFortranVector &en, ComplexFortranMatrix &wf, ComplexFortranMatrix &ham, ComplexFortranMatrix &hz, int &nre) const
Calculate the crystal field eigensystem.
CrystalFieldPeaks is a function that calculates crystal field peak positions and intensities.
size_t getNumberValuesPerArgument() const override
Get number of values per argument in the domain.
void functionGeneral(const API::FunctionDomainGeneral &generalDomain, API::FunctionValues &values) const override
Provide a concrete function in an implementation that operates on a FunctionDomainGeneral.
size_t getDefaultDomainSize() const override
Get the default size of a domain.
size_t getNumberDomainColumns() const override
Get number of columns that the domain must have.
size_t m_defaultDomainSize
Store the default domain size after first function evaluation.
std::string name() const override
Returns the function's name.
void MANTID_CURVEFITTING_DLL calculateExcitations(const DoubleFortranVector &e_energies, const DoubleFortranMatrix &i_energies, double de, double di, DoubleFortranVector &e_excitations, DoubleFortranVector &i_excitations)
Calculate the excitations (transition energies) and their intensities.
void MANTID_CURVEFITTING_DLL calculateIntensities(int nre, const DoubleFortranVector &energies, const ComplexFortranMatrix &wavefunctions, double temperature, double de, IntFortranVector °eneration, DoubleFortranVector &e_energies, DoubleFortranMatrix &i_energies)
Calculate the intensities of transitions.