本文整理汇总了Python中track.Track.extractFeature方法的典型用法代码示例。如果您正苦于以下问题:Python Track.extractFeature方法的具体用法?Python Track.extractFeature怎么用?Python Track.extractFeature使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类track.Track
的用法示例。
在下文中一共展示了Track.extractFeature方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from track import Track [as 别名]
# 或者: from track.Track import extractFeature [as 别名]
def main(argv):
data = list()
traindata_path = argv[1]
output_filename = argv[2]
outputFile = openOutputFile(output_filename)
## traverse reference data
ref_list = getReferenceStopData(reference_data_path)
ref = ref_list[0]
## traverse track data
for root, dirs, files in os.walk(traindata_path):
for f in files :
print "data:" + f
file_path = traindata_path + "/" + f
track = Track(traindata_path + "/" + f)
#drawhist(track.getSpeedData(),track.getActivity()+" speed")
#lowpeaks = track.getLowPeaks(activity = track.getActivity(), False)
outputTofp(track.getActivity() ,track.extractFeature(ref), outputFile)
#track.plot()
print ""
print ""
print ""