partitionExpon¶
- maelzel.distribute.partitionExpon(n, numpart, exp=2.0)[source]¶
Partition n into numpart following an exponential curve
- Parameters:
n (
float
) – the number to partitionnumpart (
int
) – the number of items to partition n intoexp – the exponential of the curve
- Return type:
list
[float
]- Returns:
a seq. of values which sum up to n following an exponential curve
Note
In order to partition into integer values, use
roundSeqPreservingSum()