2.0.0b10
catchment modelling framework
Loading...
Searching...
No Matches
linear_scale Class Reference

A linear scaling functor, with slope and displacement. More...

Detailed Description

A linear scaling functor, with slope and displacement.

Public Member Functions

 linear_scale (real _slope=1, real _displacement=0)
 Creates a linear scale (by default it is a unity scale, $a=1; b=0$)
 
real operator() (real value) const
 Returns the scaled value $y_{scale}=a\ y+b$.
 

Public Attributes

real displacement
 Displacement of the scale ($b$ in scale function)
 
real slope
 Slope of the scale ($a$ in scale function)