'get array that has repeats given by floor(weights)
observations with weight=0 are dropped'

def asrepeats(self):

    w_int = np.floor(self.weights).astype(int)
    return np.repeat(self.data, w_int, axis=0)
