Beispiel #1
0
def klusters_files(table,basename):
    CluFileName,FetFileName,ResFileName,SpkFileName,XMLFileName = (basename + ext for ext in [".clu.1",".fet.1",".res.1",".spk.1",".xml"])
    output.write_clu(table.cols.clu[:],CluFileName)
    output.write_fet(to2d(table.cols.fet[:]),FetFileName,samples=table.cols.time[:])
    output.write_res(table.cols.time[:],ResFileName)
    output.write_spk(table.cols.wave[:],SpkFileName)
    output.write_xml(n_ch=N_CH,n_samp=S_TOTAL,n_feat=N_CH*FPC,sample_rate=SAMPLE_RATE,filepath=XMLFileName)    
Beispiel #2
0
def klusters_files(table, basename):
    CluFileName, FetFileName, ResFileName, SpkFileName, XMLFileName = (
        basename + ext
        for ext in [".clu.1", ".fet.1", ".res.1", ".spk.1", ".xml"])
    output.write_clu(table.cols.clu[:], CluFileName)
    output.write_fet(to2d(table.cols.fet[:]),
                     FetFileName,
                     samples=table.cols.time[:])
    output.write_res(table.cols.time[:], ResFileName)
    output.write_spk(table.cols.wave[:], SpkFileName)
    output.write_xml(n_ch=N_CH,
                     n_samp=S_TOTAL,
                     n_feat=N_CH * FPC,
                     sample_rate=SAMPLE_RATE,
                     filepath=XMLFileName)
Beispiel #3
0
def nproject_features_flat(X_nsc):
    Fet_nc3 = project_features(X_nsc)
    return to2d(Fet_nc3)
Beispiel #4
0
def nproject_features_allch(X_nsc):
    return 100 * np.tensordot(to2d(X_nsc), PC_df, axes=[1, 1])
Beispiel #5
0
def get_features_allch(X_nsc):
    global PC_df
    PC_df = compute_pcs(to2d(X_nsc))[:(FPC * N_CH)]
Beispiel #6
0
def nproject_features_flat(X_nsc):
    Fet_nc3 = project_features(X_nsc)
    return to2d(Fet_nc3)
Beispiel #7
0
def nproject_features_allch(X_nsc):
    return 100*np.tensordot(to2d(X_nsc),PC_df,axes = [1,1])
Beispiel #8
0
def get_features_allch(X_nsc):
    global PC_df
    PC_df = compute_pcs(to2d(X_nsc))[:(FPC*N_CH)]