Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::API::LogarithmScale Class Reference

#include <LogarithmScale.h>

Inheritance diagram for Mantid::API::LogarithmScale:
Mantid::API::ITransformScale

Public Member Functions

 LogarithmScale ()
 
const std::string name () const override
 
void setBase (const double base)
 
void transform (std::vector< double > &gd) override
 The scaling transformation. Define in derived classes. More...
 
- Public Member Functions inherited from Mantid::API::ITransformScale
 ITransformScale ()=default
 
virtual const std::string name () const
 
virtual void transform (std::vector< double > &gd)=0
 The scaling transformation. Define in derived classes. More...
 
virtual ~ITransformScale ()=default
 Virtual destructor needed for an abstract class. More...
 

Private Attributes

double m_base
 The scaling transformation. More...
 

Detailed Description

Definition at line 27 of file LogarithmScale.h.

Constructor & Destructor Documentation

◆ LogarithmScale()

Mantid::API::LogarithmScale::LogarithmScale ( )
inline

Definition at line 29 of file LogarithmScale.h.

Member Function Documentation

◆ name()

const std::string Mantid::API::LogarithmScale::name ( ) const
inlineoverridevirtual

Reimplemented from Mantid::API::ITransformScale.

Definition at line 30 of file LogarithmScale.h.

◆ setBase()

void Mantid::API::LogarithmScale::setBase ( const double  base)

Definition at line 25 of file LogarithmScale.cpp.

References Mantid::Kernel::Logger::error(), and Mantid::API::g_log.

◆ transform()

void Mantid::API::LogarithmScale::transform ( std::vector< double > &  gd)
overridevirtual

The scaling transformation. Define in derived classes.

Implements Mantid::API::ITransformScale.

Definition at line 35 of file LogarithmScale.cpp.

References Mantid::Kernel::Logger::error(), Mantid::API::g_log, m_base, n, and Mantid::Geometry::x.

Member Data Documentation

◆ m_base

double Mantid::API::LogarithmScale::m_base
private

The scaling transformation.

First and last elements of the grid remain unchanged

Definition at line 37 of file LogarithmScale.h.

Referenced by transform().


The documentation for this class was generated from the following files: