Represents a transformation applied to a feature. More...

#include <HybridNewtonConfig.hpp>

Public Types

enum class  Type { None , Log , Log10 , Log1p }
 

Public Member Functions

 Transform ()=default
 
 Transform (const std::string &name)
 
double apply (double raw_value) const
 
double applyInverse (double transformed_value) const
 

Public Attributes

enum Opm::Transform::Type type = Type::None
 

Detailed Description

Represents a transformation applied to a feature.

Supports log, log10, log1p, and no transform. Provides forward and inverse methods.

Member Enumeration Documentation

◆ Type

enum class Opm::Transform::Type
strong
Enumerator
None 
Log 
Log10 
Log1p 

Constructor & Destructor Documentation

◆ Transform() [1/2]

Opm::Transform::Transform ( )
default

◆ Transform() [2/2]

Opm::Transform::Transform ( const std::string &  name)
inlineexplicit

References Log, Log10, Log1p, None, and type.

Member Function Documentation

◆ apply()

double Opm::Transform::apply ( double  raw_value) const
inline

◆ applyInverse()

double Opm::Transform::applyInverse ( double  transformed_value) const
inline

References Log, Log10, Log1p, None, and type.

Member Data Documentation

◆ type

enum Opm::Transform::Type Opm::Transform::type = Type::None

Referenced by apply(), applyInverse(), and Transform().


The documentation for this struct was generated from the following file: