Exemplo n.º 1
0
 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
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 def setSignal(self,signalA=None,signalB=None):
     self.__signalASTFT = get_spec(signalA)
     self.__signalBSTFT = get_spec(signalB)
     self.__commonSpacePoint = None
Exemplo n.º 5
0
 def setSignal(self,signalA=None,signalB=None):
     self.__signalASTFT = get_spec(signalA)
     self.__signalBSTFT = get_spec(signalB)
     self.__mixVector,self.__IndividVector = None,None
Exemplo n.º 6
0
 def __init__(self,signalA=None,signalB=None):
     self.__signalASTFT = get_spec(signalA)
     self.__signalBSTFT = get_spec(signalB)
     self.__mixVector = None
     self.__IndividVector = None
Exemplo n.º 7
0
 def __getIndividDict(self):
     value = get_spec(self.__signal)
     self.__individDict,_ = decompose(np.abs(value), k=SPEECH_RANK)
Exemplo n.º 8
0
 def __getTestSpectrum(self):
     self.__spectrum_Mix_Test = get_spec(self.__signal_Mix_Test)