当前位置: 首页 > news >正文

做博客网站如何盈利中国建盏形象设计大赛获奖名单

做博客网站如何盈利,中国建盏形象设计大赛获奖名单,建立网站的连接结构有哪几种形式,中国建设银行网站的社保板块在哪里您可以使用 Ramer-Douglas-Peucker (RDP) algorithm来简化路径。然后#xff0c;您可以计算简化路径每段的方向变化。对应于方向最大变化的点可以称为转折点#xff1a; RDP算法的Python实现可以在on github中找到。 import matplotlib.pyplot as plt import numpy as np imp…您可以使用 Ramer-Douglas-Peucker (RDP) algorithm来简化路径。然后您可以计算简化路径每段的方向变化。对应于方向最大变化的点可以称为转折点 RDP算法的Python实现可以在on github中找到。 import matplotlib.pyplot as plt import numpy as np import os import rdp def angle(dir):Returns the angles between vectors. Parameters: dir is a 2D-array of shape (N,M) representing N vectors in M-dimensional space. The return value is a 1D-array of values of shape (N-1,), with each value between 0 and pi. 0 implies the vectors point in the same direction pi/2 implies the vectors are orthogonal pi implies the vectors point in opposite directionsdir2 dir[1:] dir1 dir[:-1] return np.arccos((dir1*dir2).sum(axis1)/( np.sqrt((dir1**2).sum(axis1)*(dir2**2).sum(axis1)))) tolerance 70 min_angle np.pi*0.22 filename os.path.expanduser(~/tmp/bla.data) points np.genfromtxt(filename).T print(len(points)) x, y points.T # Use the Ramer-Douglas-Peucker algorithm to simplify the path # http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm # Python implementation: https://github.com/sebleier/RDP/ simplified np.array(rdp.rdp(points.tolist(), tolerance)) print(len(simplified)) sx, sy simplified.T # compute the direction vectors on the simplified curve directions np.diff(simplified, axis0) theta angle(directions) # Select the index of the points with the greatest theta # Large theta is associated with greatest change in direction. idx np.where(thetamin_angle)[0]1 fig plt.figure() ax fig.add_subplot(111) ax.plot(x, y, b-, labeloriginal path) ax.plot(sx, sy, g--, labelsimplified path) ax.plot(sx[idx], sy[idx], ro, markersize 10, labelturning points) ax.invert_yaxis() plt.legend(locbest) plt.show() 以上使用两个参数RDP算法采用一个参数公差其中代表简化路径的最大距离可能偏离原来的路径。公差越大粗鲁的路径就越简单。另一个参数是min_angle它定义了被认为是一个转折点。 (我正在转弯点是原始路径上的任何一点简化路径上的进入和退出向量之间的角度大于min_angle)。
http://www.yutouwan.com/news/422633/

相关文章:

  • 自己做网站赚钱案例网站制作 符合百度
  • 海外网站备案基于推荐算法的网站开发
  • 芙蓉区网站建设公司广州市官网网站建设平台
  • 高端网站建设哪家好成都h5网站建设
  • 做网站改版多少钱作品集设计
  • 嘉兴企业网站建设公司郑州网站建设msgg
  • 网站建设类课题的研究方法做网站推广好做吗
  • 河北制作网站模板建站公司阿里巴巴怎么做企业网站
  • 抽奖网站开发公司网站谁负责做
  • 网站开发qq群苏州保洁公司诗雨
  • 上海浦东新区做网站一个完整的品牌策划方案范文
  • 网站后台显示不全2016响应式网站模板
  • 中卫网站建设报价网站支付界面怎么做
  • 网站内链建设和外链的推广建设银行官网站下载地址
  • 电子商务网站建设的定义939网站建设
  • 河南制作网站个人博客网站开发历程
  • 郑州专门做网站国外卖货平台有哪些
  • 重庆建设科技培训中心官方网站seo zac
  • 只用django做网站网上卖货哪个平台比较好
  • 济南网站建设设计公司外贸推广网站收费吗
  • 现在建网站还能赚钱吗wordpress+私信
  • 献县城市住房建设局网站linux做网站要求
  • 360浏览器直接进入网站有哪些网站可以做全景效果图
  • 邢台网站建设多少钱wordpress front-page.php
  • 中山精品网站建设公司调查队网站建设
  • 如何改变网站首页栏目北京市中海建设有限公司网站
  • 音乐网站开发目的网站建设相关网站
  • 镇江市网站建设微信公众号推广的方法
  • 现代化公司网站建设惠民建设局网站是哪个
  • 工商网站查询企业信息武威海外购物网站哪个最好