Mantid
Loading...
Searching...
No Matches
AddLogInterpolated.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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#include "MantidAlgorithms/DllConfig.h"
11
12namespace Mantid {
13namespace Algorithms {
14
20class MANTID_ALGORITHMS_DLL AddLogInterpolated final : public API::Algorithm {
21public:
23 const std::string name() const override { return "AddLogInterpolated"; }
25 const std::string summary() const override {
26 return "Interpolates a given log to match a time series log's axis, using a cubic spline";
27 }
28
30 int version() const override { return 1; }
31 const std::vector<std::string> seeAlso() const override {
32 return {"AddSampleLog", "AddLogDerivative", "AddLogSmoothed"};
33 }
35 const std::string category() const override { return "DataHandling\\Logs"; }
36
37private:
39 void init() override;
41 std::map<std::string, std::string> validateInputs() override;
43 void exec() override;
44
45 std::pair<size_t, size_t> findInterpolationRange(std::vector<double> const &, std::vector<double> const &) const;
46};
47
48} // namespace Algorithms
49} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
Takes an existing sample log and interpolates it according to the time axis of another log.
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version for identification.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string name() const override
Algorithm's name for identification.
const std::string summary() const override
Summary of algorithms purpose.
Helper class which provides the Collimation Length for SANS instruments.