Mantid
Loading...
Searching...
No Matches
MaxentEntropyPositiveValues.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
18class MANTID_ALGORITHMS_DLL MaxentEntropyPositiveValues : public MaxentEntropy {
19public:
20 // First derivative
21 std::vector<double> derivative(const std::vector<double> &values, double background) override;
22 // Second derivative
23 std::vector<double> secondDerivative(const std::vector<double> &values, double background) override;
24 // Correct negative values
25 std::vector<double> correctValues(const std::vector<double> &values, double newValue) override;
26};
27
28} // namespace Algorithms
29} // namespace Mantid
MaxentEntropyPositiveValues : Class defining the entropy of a positive 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.