def weight_function(self, t):
    """
    Weight function proposed in the original paper to subsample
    """
    if t < self.a:
        return 0
    elif t >= self.a and t < self.b:
        return (t - self.a)/(self.b - self.a)
    else:
        return 1