Mantid
Loading...
Searching...
No Matches
MaxentEntropyNegativeValues.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
10
11namespace Mantid {
12namespace Algorithms {
13
21class MANTID_ALGORITHMS_DLL MaxentEntropyNegativeValues : public MaxentEntropy {
22public:
23 // First derivative
24 std::vector<double> derivative(const std::vector<double> &values, double background) override;
25 // Second derivative
26 std::vector<double> secondDerivative(const std::vector<double> &values, double background) override;
27 // Correct negative values
28 std::vector<double> correctValues(const std::vector<double> &values, double newValue) override;
29};
30
31} // namespace Algorithms
32} // namespace Mantid
MaxentEntropyNegativeValues : Class defining the entropy of a 'PosNeg' image (i.e.
MaxentEntropy : Abstract base class defining the necessary methods to calculate any type of entropy t...
Definition: MaxentEntropy.h:19
Helper class which provides the Collimation Length for SANS instruments.