def calc_pairs(self,labels,data): """ Calculate the ustatistic for each operation and every label pairing Parameters: ----------- labels : ndarray 1-D array containing the labels for each row in data. data : ndarray Array containing the data. Each row corresponds to a timeseries and each column to an operation. Returns: -------- ranks : ndarray Returns the scaled U statistic for each label pairing and each operation. """ ranks,ustat_norm = fistat.u_stat_all_label(data,labels=labels)[0:2] return ranks/ustat_norm[:,np.newaxis]
def calc_pairs(self, labels, data): """ Calculate the ustatistic for each operation and every label pairing Parameters: ----------- labels : ndarray 1-D array containing the labels for each row in data. data : ndarray Array containing the data. Each row corresponds to a timeseries and each column to an operation. Returns: -------- ranks : ndarray Returns the scaled U statistic for each label pairing and each operation. """ ranks, ustat_norm = fistat.u_stat_all_label(data, labels=labels)[0:2] return ranks / ustat_norm[:, np.newaxis]
def calc_pairs(self, labels, data): ranks, ustat_norm = fistat.u_stat_all_label(data, labels=labels)[0:2] return ranks / ustat_norm[:, np.newaxis]