calculate interval distributions from shift arrays