def anglesCluster(angles):
# this function uses hierarchical clustering to find the clusters of a set of angle values
Dists = dist.pdist(angles, angleDiff)
linkageMatrix = hier.linkage(Dists, metric = angleDiff)
C = hier.fcluster(linkageMatrix, 5, 'maxclust')
return C
visualMovieAnalysis2.py 文件源码
python
阅读 32
收藏 0
点赞 0
评论 0
评论列表
文章目录