lib.utils.customspace¶
- lib.utils.customspace(min=0.0, max=1.0, nbins=None, step=None, scale='linear')¶
Return regularly-spaced array.
- Parameters
min (float, default=0) – Minimum array value.
max (float, default=1) – Maximum array value.
nbins (int, default=None) – Number of bins, i.e. array size - 1. If
None, number of bins determined as nearest integer to(max - min)/step.step (int, default=None) – Separation between array values. Used only if
nbinsis notNone.scale (string, default='linear') – Scaling relation between array values. If
log10(orlog),min,maxandstepare considered in log10-space.
- Returns
toret
- Return type
array