32 virtual std::vector<fvalue> contributionRatio(fvalue omega) = 0;
33 std::vector<bool> contributes(fvalue omega, fvalue threshold = 0.01);
39 std::vector<Componant*> componants;
41 Parallel(std::vector<Componant*> componantsIn = std::vector<Componant*>());
42 Parallel(
const Parallel& in);
43 void operator=(
const Parallel& in);
45 virtual std::complex<fvalue> execute(fvalue omaga)
override;
46 virtual char getComponantChar()
const override;
47 virtual std::string
getComponantString(
bool currentValue =
true,
bool withCount =
false)
const override;
48 static constexpr char staticGetComponantChar(){
return 'd';}
49 virtual std::string componantName()
const override {
return "Parallel";}
50 virtual bool compileable()
override;
51 virtual std::string getCode(std::vector<std::string>& parameters)
override;
52 virtual std::string getTorchScript(std::vector<std::string>& parameters)
override;
53 virtual std::vector<fvalue> contributionRatio(fvalue omega)
override;
59 std::vector<Componant*> componants;
61 Serial(std::vector<Componant*> componantsIn = std::vector<Componant*>());
62 Serial(
const Serial& in);
63 void operator=(
const Serial& in);
65 virtual std::complex<fvalue> execute(fvalue omaga)
override;
66 virtual char getComponantChar()
const override;
67 virtual std::string
getComponantString(
bool currentValue =
true,
bool withCount =
false)
const override;
68 static constexpr char staticGetComponantChar(){
return 's';}
69 virtual std::string componantName()
const override {
return "Serial";}
70 virtual bool compileable()
override;
71 virtual std::string getCode(std::vector<std::string>& parameters)
override;
72 virtual std::string getTorchScript(std::vector<std::string>& parameters)
override;
73 virtual std::vector<fvalue> contributionRatio(fvalue omega)
override;
Definition componant.h:32
Definition paralellseriel.h:30
virtual std::string getComponantString(bool currentValue=true, bool withCount=false) const override
Gets this componant as a model string.
virtual std::string getComponantString(bool currentValue=true, bool withCount=false) const override
Gets this componant as a model string.
eisgenerator Copyright (C) 2021 Carl Klemm
Definition basicmath.h:26