CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::Mod Class Reference

#include <Mod.hh>

+ Inheritance diagram for Genfun::Mod:

Public Member Functions

 Mod (double y)
 
 Mod (const Mod &right)
 
virtual ~Mod ()
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 
- Public Member Functions inherited from Genfun::AbsFunction
 AbsFunction ()
 
 AbsFunction (const AbsFunction &right)
 
virtual ~AbsFunction ()
 
virtual unsigned int dimensionality () const
 
virtual double operator() (double argument) const =0
 
virtual double operator() (const Argument &argument) const =0
 
virtual AbsFunctionclone () const =0
 
virtual FunctionComposition operator() (const AbsFunction &f) const
 
virtual ParameterComposition operator() (const AbsParameter &p) const
 
Derivative derivative (const Variable &v) const
 
Derivative prime () const
 
virtual bool hasAnalyticDerivative () const
 
virtual Derivative partial (unsigned int) const
 

Detailed Description

Author

Definition at line 19 of file Mod.hh.

Constructor & Destructor Documentation

◆ Mod() [1/2]

Genfun::Mod::Mod ( double  y)

Definition at line 9 of file Mod.cc.

9 :
10 _y(y)
11{}

◆ Mod() [2/2]

Genfun::Mod::Mod ( const Mod right)

Definition at line 13 of file Mod.cc.

14 : AbsFunction(right), _y(right._y)
15{}

◆ ~Mod()

Genfun::Mod::~Mod ( )
virtual

Definition at line 17 of file Mod.cc.

17 {
18}

Member Function Documentation

◆ operator()() [1/2]

virtual double Genfun::Mod::operator() ( const Argument a) const
inlineoverridevirtual

Implements Genfun::AbsFunction.

Definition at line 37 of file Mod.hh.

37{return operator() (a[0]);}
virtual double operator()(double argument) const override
Definition: Mod.cc:26

◆ operator()() [2/2]

double Genfun::Mod::operator() ( double  argument) const
overridevirtual

Implements Genfun::AbsFunction.

Definition at line 26 of file Mod.cc.

26 {
27 return (x - _y*floor(x/_y));
28}

Referenced by operator()().


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