def METHOD_NAME(self, data, ind = None):
    if self.transform_type == 'z-transform':
        if ind is not None:
            return (data - self.mean_y[ind]) / self.std_y[ind]
        else:
            return (data - self.mean_y) / self.std_y
    else:
        return data