Package topo :: Package outputfn :: Module basic :: Class PiecewiseLinear
[hide private]
[frames] | no frames]

Class PiecewiseLinear

source code

                       object --+        
                                |        
param.parameterized.Parameterized --+    
                                    |    
         base.functionfamily.OutputFn --+
                                        |
                                       PiecewiseLinear

Piecewise-linear OutputFn with lower and upper thresholds.

Values below the lower_threshold are set to zero, those above the upper threshold are set to 1.0, and those in between are scaled linearly.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__call__(self, x) source code

Inherited from base.functionfamily.OutputFn: __add__

Inherited from param.parameterized.Parameterized: __getstate__, __init__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, set_dynamic_time_fn, state_pop, state_push, verbose, warning

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  lower_bound = param.Number(default= 0.0, softbounds= (0.0, 1.0))
  upper_bound = param.Number(default= 1.0, softbounds= (0.0, 1.0))

Inherited from base.functionfamily.OutputFn: norm_value

Inherited from param.parameterized.Parameterized: name, print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, x)
(Call operator)

source code 
Overrides: base.functionfamily.OutputFn.__call__