anaflow.tools.special.specialrange
- specialrange(val_min, val_max, steps, typ='exp')[source]
Calculation of special point ranges.
- Parameters:
val_min (
float) – Starting value.val_max (
float) – Ending valuesteps (
int) – Number of steps.typ (
strorfloat, optional) – Setting the kind of range-distribution. One can choose between"exp": for exponential behavior"log": for logarithmic behavior"geo": for geometric behavior"lin": for linear behavior"quad": for quadratic behavior"cub": for cubic behaviorfloat: here you can specifi any exponent (“quad” would be equivalent to 2)
Default:
"exp"
- Returns:
Array containing the special range
- Return type:
Examples
>>> specialrange(1,10,4) array([ 1. , 2.53034834, 5.23167968, 10. ])