compas.itertools
This package defines useful functions for working with iterable objects.
Functions
Normalize a list of numbers to the range between new_min and new_max. |
|
Maps a list of numbers from one domain to another. |
|
Construct coordinate matrices from two coordinate vectors. |
|
Generate a sequence of evenly spaced numbers over a specified interval. |
|
Flatten one level of nesting. |
|
Gives a new shape to an array without changing its data. |
|
Returns a sliding window of size 2 over the data of the iterable. |
|
Returns a sliding window (of width n) over the data from the iterable. |
|
Creates an iterator from a reference object with size equivalent to that of a target iterable. |