Name

linchange - reinterpolate a line given as a list by a given factor.

Usage

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.

linchange (last edited 2014-06-07 16:35:19 by penczek)