def __init__(self,signalA=None,signalB=None): self.__signalASTFT = get_spec(signalA) self.__signalBSTFT = get_spec(signalB) self.__commonSpacePoint = None self.__commonSpaceVector = None self.__mixVector = None self.__IndividSpace = None
def __getTrainSpectrum(self): self.__spectrum_S1_Train = get_spec(self.__signal_S1_Train) self.__spectrum_S2_Train = get_spec(self.__signal_S2_Train) self.__spectrum_Mix_Train = get_spec(self.__signal_Mix_Train) train_Data = np.column_stack((self.__spectrum_S1_Train,self.__spectrum_S2_Train)) train_Data = np.column_stack((train_Data,self.__spectrum_Mix_Train)) return np.abs(train_Data)
def getTestData(self): #self.__getTestSignal() #self.__getTestSpectrum() self.__spectrum_Mix_Test = get_spec(readSignal(self.__test_Filelist[0])) testData = np.abs(self.__spectrum_Mix_Test) return testData,self.__spectrum_Mix_Test
def setSignal(self,signalA=None,signalB=None): self.__signalASTFT = get_spec(signalA) self.__signalBSTFT = get_spec(signalB) self.__commonSpacePoint = None
def setSignal(self,signalA=None,signalB=None): self.__signalASTFT = get_spec(signalA) self.__signalBSTFT = get_spec(signalB) self.__mixVector,self.__IndividVector = None,None
def __init__(self,signalA=None,signalB=None): self.__signalASTFT = get_spec(signalA) self.__signalBSTFT = get_spec(signalB) self.__mixVector = None self.__IndividVector = None
def __getIndividDict(self): value = get_spec(self.__signal) self.__individDict,_ = decompose(np.abs(value), k=SPEECH_RANK)
def __getTestSpectrum(self): self.__spectrum_Mix_Test = get_spec(self.__signal_Mix_Test)