CYCLUS
Loading...
Searching...
No Matches
cyclus::toolkit::LinearFunction Class Reference

Detailed Description

Linear functions f(x) = slope_ * x + intercept_.

Definition at line 34 of file symbolic_functions.h.

#include <symbolic_functions.h>

Inheritance diagram for cyclus::toolkit::LinearFunction:
cyclus::toolkit::SymFunction

Public Member Functions

 LinearFunction (double s, double i=0.0)
 
virtual std::string Print ()
 
virtual double value (double x)
 
- Public Member Functions inherited from cyclus::toolkit::SymFunction
virtual ~SymFunction ()
 

Additional Inherited Members

- Public Types inherited from cyclus::toolkit::SymFunction
typedef boost::shared_ptr< SymFunctionPtr
 

Constructor & Destructor Documentation

◆ LinearFunction()

cyclus::toolkit::LinearFunction::LinearFunction ( double s,
double i = 0.0 )
inline

Constructor for a linear function.

Parameters
sthe slope
ithe intercept, with the default being 0

Definition at line 39 of file symbolic_functions.h.

Member Function Documentation

◆ Print()

std::string cyclus::toolkit::LinearFunction::Print ( )
virtual

Print a string of the function.

Implements cyclus::toolkit::SymFunction.

Definition at line 17 of file symbolic_functions.cc.

◆ value()

double cyclus::toolkit::LinearFunction::value ( double x)
virtual

Evaluation for an double argument.

Implements cyclus::toolkit::SymFunction.

Definition at line 12 of file symbolic_functions.cc.


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