def discretize_center_1D(model, x_range):
 x = np.arange(*x_range)
 return model(x)

def discretize_center_1D ( model , x_range ) : x = np . arange ( * x_range ) return model ( x )
discretize model by taking the value at the center of the bin .