Mantid
Loading...
Searching...
No Matches
LinearScale.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include <vector>
13
14#include "MantidAPI/DllConfig.h"
16
17namespace Mantid {
18namespace API {
19/*Base class representing a linear scaling transformation acting on a
20 one-dimensional grid domain
21
22 @author Jose Borreguero
23 @date Aug/28/2012
24*/
25
26class MANTID_API_DLL LinearScale : public API::ITransformScale {
27public:
30 const std::string name() const override { return "LinearScale"; }
31 void transform(std::vector<double> &gd) override;
32}; // class LinearScale
33
34} // namespace API
35} // namespace Mantid
const std::string name() const override
The scaling transformation.
Definition: LinearScale.h:30
Helper class which provides the Collimation Length for SANS instruments.