IODA Bundle
Transforms/ScalingTransform.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2020 NOAA/NWS/NCEP/EMC
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  */
7 
8 #pragma once
9 
10 #include "Transform.h"
11 
12 
13 namespace Ingester
14 {
15  /// \brief Multiply a floating point scaling factor to to the data.
16  class ScalingTransform : public Transform
17  {
18  public:
19  explicit ScalingTransform(const double scaling_);
20  ~ScalingTransform() = default;
21 
22  /// \brief Apply transform to the given data.
23  void apply(IngesterArray& array) override;
24 
25  private:
26  const double scaling_;
27  };
28 } // namespace Ingester
Multiply a floating point scaling factor to to the data.
void apply(IngesterArray &array) override
Apply transform to the given data.
Base class for Transforms which are used to transform data. Transforms are useful for getting data in...
Eigen::Array< FloatType, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > IngesterArray
Definition: IngesterTypes.h:19