Name
linchange - reinterpolate a line given as a list by a given factor.
Usage
- o = linchange(a, fct)
Input
- a
- list of numbers representing a 1D curve
- fct
interpolation factor, if fct<1.0, the line will become shorter, if fct>1.0, the line will become longer
- o
- output 1D list. NOTE: the output list will be shorter/longer than the input list by a factor of fct.
Method
Program uses simple linear interpolation.
Reference
Author / Maintainer
Pawel Penczek
Keywords
- category 1
- UTILITIES
Files
morphology.py
Maturity
- stable
- works for most people, has been tested; test cases/examples available.
Bugs
None. It is perfect.