Mantid
Loading...
Searching...
No Matches
MaxentTransform.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
9#include "MantidAlgorithms/DllConfig.h"
10#include <memory>
11#include <vector>
12
13namespace Mantid {
14namespace Algorithms {
15
19class MANTID_ALGORITHMS_DLL MaxentTransform {
20public:
21 // Constructor
22 MaxentTransform() = default;
23 // Destructor
24 virtual ~MaxentTransform() = default;
25 // Transfoms form image space to data space
26 virtual std::vector<double> imageToData(const std::vector<double> &image) = 0;
27 // Transforms from data space to image space
28 virtual std::vector<double> dataToImage(const std::vector<double> &data) = 0;
29};
30
31using MaxentTransform_sptr = std::shared_ptr<MaxentTransform>;
32
33} // namespace Algorithms
34} // namespace Mantid
MaxentTransform : Abstract base class defining MaxEnt transformations from image space to data space ...
virtual std::vector< double > imageToData(const std::vector< double > &image)=0
virtual std::vector< double > dataToImage(const std::vector< double > &data)=0
std::shared_ptr< MaxentTransform > MaxentTransform_sptr
Helper class which provides the Collimation Length for SANS instruments.