I solved this with the approximated solution - it’s enough for my case:
a) Interpolate (using $range) between startDate and endDate.
b) Round interpolated values (timestamp) to some arbitrary value, so the frequency of all sets will match.
c) Group by timestamp.
d) Remove invalid groups.
e) Recreate the final intervals set by implementing something similar to 1-D kNN.