code: def _calc_sampleset(w1, w2, step, minimal):
          
          if minimal:
              arr = [w1 - step, w1, w2, w2 + step]
          else:
              arr = np.arange(w1 - step, w2 + step + step, step)
  
          return arr
docs: Calculate sampleset for each model.