forked from AmbaPant/mantid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Interpolate.h
51 lines (39 loc) · 2.37 KB
/
Interpolate.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2016 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 "MantidHistogramData/DllConfig.h"
#include <cstddef>
namespace Mantid {
namespace HistogramData {
class Histogram;
/**
Defines public functions to perform interpolation of histogram data.
*/
MANTID_HISTOGRAMDATA_DLL Histogram interpolateLinear(const Histogram &input, const size_t stepSize,
const bool calculateErrors = false,
const bool independentErrors = true);
MANTID_HISTOGRAMDATA_DLL void interpolateLinearInplace(Histogram &inOut, const size_t stepSize,
const bool calculateErrors = false,
const bool independentErrors = true);
MANTID_HISTOGRAMDATA_DLL void interpolateLinearInplace(const Histogram &input, Histogram &output,
const bool calculateErrors = false,
const bool independentErrors = true);
MANTID_HISTOGRAMDATA_DLL Histogram interpolateCSpline(const Histogram &input, const size_t stepSize,
const bool calculateErrors = false,
const bool independentErrors = true);
MANTID_HISTOGRAMDATA_DLL void interpolateCSplineInplace(Histogram &inOut, const size_t stepSize,
const bool calculateErrors = false,
const bool independentErrors = true);
MANTID_HISTOGRAMDATA_DLL void interpolateCSplineInplace(const Histogram &input, Histogram &output,
const bool calculateErrors = false,
const bool independentErrors = true);
MANTID_HISTOGRAMDATA_DLL
size_t minSizeForCSplineInterpolation();
MANTID_HISTOGRAMDATA_DLL
size_t minSizeForLinearInterpolation();
} // namespace HistogramData
} // namespace Mantid