forked from AmbaPant/mantid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
FunctionCreationHelper.h
31 lines (25 loc) · 1.01 KB
/
FunctionCreationHelper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidAPI/IFunction1D.h"
#include "MantidAPI/ParamFunction.h"
namespace Mantid {
namespace FrameworkTestHelpers {
class FunctionChangesNParams : public Mantid::API::IFunction1D, public Mantid::API::ParamFunction {
public:
FunctionChangesNParams();
std::string name() const override;
void iterationStarting() override;
void iterationFinished() override;
protected:
void function1D(double *out, const double *xValues, const size_t nData) const override;
void functionDeriv1D(Mantid::API::Jacobian *out, const double *xValues, const size_t nData) override;
size_t m_maxNParams = 5;
bool m_canChange = false;
};
} // namespace FrameworkTestHelpers
} // namespace Mantid