边缘AI:重塑计算机历史的技术革命

需积分: 2 5 下载量 167 浏览量 更新于2024-06-26 收藏 11.33MB PDF 举报
"AI at the Edge" 是一本聚焦于边缘人工智能领域的实用指南,它引领读者探索这一新兴技术的发展趋势。在过去的几年里,工程师和研究人员通过将AI的力量推向设备的边缘,即离数据产生和处理更近的地方,正在重塑计算机与现实世界互动的方式。这种技术革新意味着传统计算模式的转变,它将深深影响每个人的生活。 本书以简洁明了的语言,消除了关于边缘AI的复杂术语,并着重介绍了开发者在构建边缘AI应用过程中可能遇到的实际挑战。它提供了一个从概念到部署的完整路径,对于初入该领域的学习者来说,是一本不可或缺的入门读物。 作者以清晰易懂的写作风格,使复杂的技术主题变得易于理解,无论是作为参考书还是学习工具,都能让读者反复查阅并从中获益。评论者们如Delft University of Technology的Wiebke Hutiri赞赏其实践性和实用性,认为它是理解和进入边缘AI领域的理想资源。Arm的Director Fran Baker则强调了作者对技术的深入剖析和对社会影响的关注。 Aurélien Geron,前YouTube视频自动分类团队的负责人,对这本书的全面性和实用性给予了高度评价。它涵盖了广泛的议题,包括核心概念、最新硬件和软件工具,以及实用的建议。书中还包含多个完整的案例研究,使读者能够跟随实际项目的脚步,深入了解边缘AI的设计和实施过程。 "AI at the Edge" 不仅是技术专家的宝典,也是希望在这个快速发展的领域建立职业的人们的理想选择。它揭示了边缘AI的潜力,帮助读者掌握关键技能,以便在未来的科技革命中抓住机遇。随着边缘计算的发展,这本书对于提升个人和组织在智能物联网、自动驾驶、智能家居等领域的竞争力具有重要意义。

帮我写出以下java代码:Add a class Bubble that extends Shape. The Bubble class has an instance variable called radius of type double that represents the radius of the bubble. The constructor of the Bubble class takes an x and a y as arguments, which represent the position of the new bubble. The radius of a new bubble is always 10 and never changes after that. The isVisible method indicates whether the bubble is currently visible inside a window of width w and height h (position (0, 0) is in the upper-left corner of the window). The bubble is considered visible if at least one pixel of the bubble is visible. Therefore a bubble might be visible even when its center is outside the window, as long as the edge of the bubble is still visible inside the window. The code of the isVisible method is a little bit complex, mostly because of the case where the center of the circle is just outside one of the corners of the window. So here is the code of the isVisible method, which you can directly copy-paste into your assignment: // Find the point (wx, wy) inside the window which is closest to the // center (x, y) of the circle. In other words, find the wx in the // interval [0, w - 1] which is closest to x, and find the wy in the // interval [0, h - 1] which is closest to y. // If the distance between (wx, wy) and (x, y) is less than the radius // of the circle (using Pythagoras's theorem) then at least part of // the circle is visible in the window. // Note: if the center of the circle is inside the window, then (wx, wy) // is the same as (x, y), and the distance is 0. public boolean isVisible(int w, int h) { double x = getX(); double y = getY(); double wx = (x < 0 ? 0 : (x > w - 1 ? w - 1 : x)); double wy = (y < 0 ? 0 : (y > h - 1 ? h - 1 : y)); double dx = wx - x; double dy = wy - y; return dx * dx + dy * dy <= radius * radius; } The isIn method indicates whether the point at coordinates (x, y) (which are the arguments of the method) is currently inside the bubble or not. The edge of the bubble counts as being inside of the bubble. HINT: use Pythagoras's theorem to compute the distance from the center of the bubble to the point (x, y). The draw method uses the graphics object g to draw the bubble. HINT: remember that the color of the graphics object g is changed in the draw method of the superclass of Bubble. Also add a testBubble method to test all your methods (including inherited methods, but excluding the isVisible method, which I provide, and excluding the draw method since it requires as argument a graphics object g that you

2023-05-22 上传