From a178e7b3c215c7565932383e9b610f3101ee9e64 Mon Sep 17 00:00:00 2001 From: Carl Klemm <carl@uvos.xyz> Date: Tue, 3 May 2022 13:37:16 +0200 Subject: [PATCH] move datatypes into eistype.h --- eisgenerator/model.h | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/eisgenerator/model.h b/eisgenerator/model.h index b07edcf..12029d0 100644 --- a/eisgenerator/model.h +++ b/eisgenerator/model.h @@ -10,43 +10,6 @@ namespace eis { -struct DataPoint -{ - std::complex<double> im; - double omega; -}; - -struct Range -{ - double start; - double end; - size_t count; - bool log = false; - - double stepSize() const - { - return (end-start)/count; - } - Range operator*(fvalue in) const - { - return Range(start*in, end*in, count, log); - } - Range operator/(fvalue in) const - { - return operator*(static_cast<fvalue>(1.0)/in); - } - Range operator*(int in) const - { - return operator*(static_cast<fvalue>(in)); - } - Range operator/(int in) const - { - return operator*(static_cast<fvalue>(1.0)/in); - } - Range(double startI, double endI, size_t countI, bool logI = false): start(startI), end(endI), count(countI), log(logI){} - Range() = default; -}; - class Model { private: -- GitLab