x-> a*x+b not normated to 1
Methods
|
|
__init__
__repr__
get_parameters
get_value
resolution
set_parameters
|
|
__init__
|
__init__ (
self,
a=0,
b=0,
color=None,
)
init parameters
|
|
__repr__
|
__repr__ ( self )
|
|
get_parameters
|
get_parameters ( self )
returns (a,b)
|
|
get_value
|
get_value ( self, x )
simple evaluation: linear function
|
|
resolution
|
resolution (
self,
x1,
x2,
)
only 2 points needed
|
|
set_parameters
|
set_parameters ( self, values )
sets a and b from (a,b)
|
|