omde.bpf
index
/usr/local/lib/python2.1/site-packages/omde/bpf.py

Break-point function
 
These are Functions in the omde.functional sense.

 
Modules
            
math

 
Classes
            
omde.functional.Function(omde.functional.FunctionModel)
BPF
HalfCosineSegment
LinearSegment
NoInterpolationSegment
PowerSegment
omde.functional.FunctionModel
LinearSegment0

 
class BPF(omde.functional.Function)
      BPF(pairs)
 
base class for all break-point functions
 
  
__add__(self, function) from omde.functional.Function
__call__(self, t) from omde.functional.Function
__div__(self, function) from omde.functional.Function
__init__(self, pairs, periodic=0)
Return a BPF instance.
 
pair is the list of pairs (time, value).
At lease the pairs should be passed, otherwise
a ValueError exception is raised.
 
if periodic is true the periodic version of
the call operator is used.
if periodic is false the aperiodic version of
the call operator is used.
__mul__(self, function) from omde.functional.Function
__radd__(self, function) from omde.functional.Function
__rdiv__(self, function) from omde.functional.Function
__rmul__(self, function) from omde.functional.Function
__rsub__(self, function) from omde.functional.Function
__sub__(self, function) from omde.functional.Function
_check_pairs(self)
_evaluate_aperiodic(self, t)
Aperiodic version of the __call__ operator.
 
Values outside the boundaries of the function
are the same of the boundaries.
_evaluate_periodic(self, t)
Periodic version of the __call__ operator.
 
Function repeats outside of the boundaries.
instance(self, begin, end) from omde.functional.Function
interpolate(self, time, time0, value0, time1, value1)
Interpolate the function value between two given points.
 
Unimplemented method.
normalize(self)
Normalize the function in the [-1,1] range.

 
class HalfCosineSegment(BPF)
      Break-point function with half-cosine interpolation.
 
See the BPF base class for more info.
 
  
__add__(self, function) from omde.functional.Function
__call__(self, t) from omde.functional.Function
__div__(self, function) from omde.functional.Function
__init__(self, *pairs)
__mul__(self, function) from omde.functional.Function
__radd__(self, function) from omde.functional.Function
__rdiv__(self, function) from omde.functional.Function
__rmul__(self, function) from omde.functional.Function
__rsub__(self, function) from omde.functional.Function
__sub__(self, function) from omde.functional.Function
_check_pairs(self) from BPF
_evaluate_aperiodic(self, t) from BPF
_evaluate_periodic(self, t) from BPF
instance(self, begin, end) from omde.functional.Function
interpolate(self, time, time0, value0, time1, value1)
normalize(self) from BPF

 
class LinearSegment(BPF)
      Break-point function with linear interpolation.
 
See the BPF base class for more info.
 
  
__add__(self, function) from omde.functional.Function
__call__(self, t) from omde.functional.Function
__div__(self, function) from omde.functional.Function
__init__(self, *pairs, **dict)
Return a LinearSegment instance.
 
Syntax:
 
LinearSegment(...points... [, exp=1.0] [, periodic=0])
 
Break-points are specified as couples
 
(time, value)
 
like LineSegment((0, 1), (5, 3), (20, 1))
__mul__(self, function) from omde.functional.Function
__radd__(self, function) from omde.functional.Function
__rdiv__(self, function) from omde.functional.Function
__rmul__(self, function) from omde.functional.Function
__rsub__(self, function) from omde.functional.Function
__sub__(self, function) from omde.functional.Function
_check_pairs(self) from BPF
_evaluate_aperiodic(self, t) from BPF
_evaluate_periodic(self, t) from BPF
instance(self, begin, end) from omde.functional.Function
interpolate(self, time, time0, value0, time1, value1)
normalize(self) from BPF

 
class LinearSegment0(omde.functional.FunctionModel)
      Function model for LineratSegment's.
 
  
__init__(self, value0, *points)
instance(self, begin, end)

 
class NoInterpolationSegment(BPF)
      Break-point function without interpolation.
 
See the BPF base class for more info.
 
  
__add__(self, function) from omde.functional.Function
__call__(self, t) from omde.functional.Function
__div__(self, function) from omde.functional.Function
__init__(self, *pairs)
Return a NoInterpolationSegment instance.
 
Syntax:
 
NoInterpolationSegment(...points... [, exp=...])
 
Break-point function without interpolation.
 
Break-points are specified as couples
 
(time, value)
 
like NoInterpolationSegment((0, 1), (5, 3), (20, 1))
__mul__(self, function) from omde.functional.Function
__radd__(self, function) from omde.functional.Function
__rdiv__(self, function) from omde.functional.Function
__rmul__(self, function) from omde.functional.Function
__rsub__(self, function) from omde.functional.Function
__sub__(self, function) from omde.functional.Function
_check_pairs(self) from BPF
_evaluate_aperiodic(self, t) from BPF
_evaluate_periodic(self, t) from BPF
instance(self, begin, end) from omde.functional.Function
interpolate(self, time, time0, value0, time1, value1)
normalize(self) from BPF

 
class PowerSegment(BPF)
      Break-point function with exponential interpolation.
 
See the BPF base class for more info.
 
  
__add__(self, function) from omde.functional.Function
__call__(self, t) from omde.functional.Function
__div__(self, function) from omde.functional.Function
__init__(self, *pairs, **dict)
Return a PowerSegment instance.
 
Syntax:
 
PowerSegment(...points... [, exp=1.0] [, periodic=0])
 
Break-points are specified as couples
 
(time, value)
 
like PowerSegment((0, 1), (5, 3), (20, 1))
__mul__(self, function) from omde.functional.Function
__radd__(self, function) from omde.functional.Function
__rdiv__(self, function) from omde.functional.Function
__rmul__(self, function) from omde.functional.Function
__rsub__(self, function) from omde.functional.Function
__sub__(self, function) from omde.functional.Function
_check_pairs(self) from BPF
_evaluate_aperiodic(self, t) from BPF
_evaluate_periodic(self, t) from BPF
instance(self, begin, end) from omde.functional.Function
interpolate(self, time, time0, value0, time1, value1)
normalize(self) from BPF

 
Data
             __file__ = '/usr/local/lib/python2.1/site-packages/omde/bpf.pyc'
__name__ = 'omde.bpf'