tkwant.manybody.split_intervals¶
-
tkwant.manybody.
split_intervals
(intervals, number_subintervals)[source]¶ Divide each interval in number_subintervals equidistant intervals.
- Parameters
intervals (sequence of
tkwant.manybody.Interval
) –Momentum intervals to perform the statistical average. Each
intervals
sequence element must have at least the following two attributes:kmin : float, lower momentum bound
kmax : float, upper momentum bound
number_subintervals (int) – number of subintervals in which each element of
intervals
in will be divided
- Returns
splitted_intervals – List of subdivided momentum intervals to perform the statistical average. All attributes are copied, only the values for the kmin and kmax attribute are changed. Number of list elements is
len(intervals) * number_subintervals
.- Return type