def stdRun(path, graph=True): frames = files.reader(path) # if graph: # chart.drawGraphJob(frames) frames = stdClean(frames) if graph: chart.drawGraphJob(frames) return pul.findBeats(frames, 4, 6)
def classify(path, clas): """ Makes a tuple with the file name, its frames and its classification """ f = files.listDir(path) res = [] j = 0 for i in f: frames = files.reader(path + "/" + i) res.append([i, frames, clas]) if j > 2: break j += 1 # break#TODO: remove this return res
def classify(path, clas): """ Makes a tuple with the file name, its frames and its classification """ f = files.listDir(path) res = [] j = 0 for i in f: frames = files.reader(path + "/" + i) res.append([i,frames,clas]) if j > 2: break j += 1 # break#TODO: remove this return res
def stdShannonRun(path, graph=True, reader=True): if reader: frames = files.reader(path) else: frames = path # if graph: # chart.drawGraphJob(frames) frames = flt.halfRate(frames) frames = flt.norm(frames) frames = stdMovArg(frames) frames = flt.shannon(frames) frames = flt.avgShannon(frames, 40, 20) if graph: chart.drawGraphJob(frames) # return pul.findBeats(frames, 4, 6) return frames