蓝牙一段一段_不用担心,它在那里存在了一段时间

蓝牙一段一段

You’re sitting in a classroom. You look around and see your friends writing something down. It seems they are taking the exam, and they know all the answers (even Johnny who, how to say it… wasn’t the brilliant one). You realize that your exam is in front of you, and it’s Maths. You start reading it but you don’t understand a thing. That’s terrible, your heart speeds up, you’re sweating and then… you wake up.

你坐在教室里。 您环顾四周,看到您的朋友写下来一些东西。 看来他们正在参加考试,而且他们知道所有答案(甚至Johnny谁,怎么说呢……也不是一个很棒的答案)。 您意识到考试就在眼前,这就是数学。 您开始阅读它,但您一无所知。 太糟糕了,您的心脏加速,出汗,然后……您醒来。

Uff, it was only a dream. You get back to sleep, but one thing bothers you. This paper from a dream, there was something about… how is it called… derivatives? You remember you learned it by heart at school, but never truly understood it. It’s time to face this ghost from the past.

乌夫,那只是一个梦。 您重新入睡,但一件事困扰您。 这篇梦from以求的论文,涉及到……它如何被称为…… 衍生物 ? 您还记得自己在学校内心地学习到它,但从未真正理解过它。 现在是时候面对过去的鬼魂了。

不用担心,它在那里存在了一段时间 (Don’t be afraid, it’s there for a while)

The idea of the derivative is not new. There is a little bit of controversy about the inventor of derivatives. The battle is between Sir Isaac Newton and Gottfried Wilhelm Leibniz.

派生的想法并不新鲜。 关于衍生工具的发明者存在一些争议。 这场战斗在艾萨克·牛顿爵士和戈特弗里德·威廉·莱布尼兹之间进行。

Apparently, these two great minds discovered it independently, not being aware of their colleagues’ work. What’s interesting they came to similar conclusions having completely different ideas and approaches to the problems they were trying to solve[1].

显然,这两个伟大的思想家是独立发现它的,没有意识到他们同事的工作。 有趣的是,他们得出了相似的结论,对要解决的问题具有完全不同的想法和方法[1]。

Newton thought in the context of physics and motion, while Leibniz thought in terms of formula that could describe a change in the metaphysical meaning. However, people worked on similar theorems before the 17th century, when Newton & Leibniz lived. Arab and Persian mathematicians from the 11th and 12th centuries are supposed to discover basic ideas behind derivatives[2].

牛顿在物理和运动的语境中思考,而莱布尼兹则在可以描述形而上学意义变化的公式方面进行思考。 但是,人们在牛顿和莱布尼兹(Newton&Leibniz)居住的17世纪之前从事类似的定理研究。 十一和十二世纪的阿拉伯和波斯数学家应该发现导数背后的基本思想[2]。

这很有用! (And it’s useful!)

Image for post
Photo by Alex Knight on Unsplash
Alex Knight在Unsplash上拍摄的照片

If you have ever been wondering if you’ll use any of the things you learned at school in real life, the answer is yes, derivatives are such a thing. Nowadays they are an important part of algorithms in many innovative areas, like Artificial Intelligence. In Machine Learning which is one of the AI domains, derivatives help computer programs to learn.

如果您曾经想过是否会使用在现实生活中在学校学到的任何东西,答案是肯定的,衍生工具就是这样。 如今,它们已成为人工智能等许多创新领域算法的重要组成部分。 在AI域之一的机器学习中,派生工具帮助计算机程序学习。

Generally speaking, such algorithms optimize objective functions (very often derivatives are needed for this purpose) so programs can find optimal parameters to solve different tasks (e.g. recognizing people on photos). Let’s get the key idea behind derivatives.

一般而言,此类算法会优化目标函数(为此经常需要使用导数),因此程序可以找到最佳参数来解决不同的任务(例如,在照片上识别人物)。 让我们了解衍生工具背后的关键思想。

然而它移动 (And yet it moves)

Leibniz was right, it’s all about the change.

莱布尼兹说得对,这就是变化。

The derivative of a function gives us information about how this function is changing.

函数的导数为我们提供了有关此函数如何变化的信息。

Is it increasing? Decreasing? Or maybe it’s constant? How fast is it changing? In which direction? These are questions that depict the usefulness of derivatives. They also explain why Newton considered it in terms of the motion. Motion is also a change.

它在增加吗? 减少? 还是恒定的? 它的变化速度有多快? 朝哪个方向? 这些是描述衍生工具有用性的问题。 他们还解释了牛顿为何以动议来考虑这一点。 运动也是一种变化。

Ok, but to understand the change of the function, we need to understand what is the function itself. So let’s do a small step back and define a function.

好的,但是要了解功能的变化,我们需要了解功能本身是什么。 因此,让我们退一步,定义一个函数。

You can imagine a function as a rule that transforms input and produces an output. It is required that such a rule can produce only one output for a given input. Putting it in other words, the function assigns one output value to each input value[3].

您可以想象一个函数通常会转换输入并产生输出。 要求这样的规则对于给定的输入只能产生一个输出。 换句话说,该函数将一个输出值分配给每个输入值[3]。

Image for post
Function scheme (Image by Author).
功能方案(作者提供的图像)。

One of the simplest functions is called a linear function. Yes, it’s a straight line. Linear functions transform input number x by multiplying it by coefficient a and adding coefficient b. That’s how we compute the output of function f(x).

最简单的函数之一称为线性函数 。 是的,这是一条直线。 线性函数通过将输入数x乘以系数a并乘以系数b来变换输入数x 。 这就是我们计算函数f(x)的输出的方式。

Image for post
Linear function formula (Image by Author).
线性函数公式(作者提供的图像)。

To visualize an example let’s set parameters a and b to 1. As a result we get f(x) = 1x +1. However x multiplied by 1 is x, so finally f(x) = x + 1. If we put 0 as x we get f(0) = 1, f(1) = 2 and so on. That’s the graph of our function:

为了可视化示例,我们将参数ab设置为1。结果,我们得到f(x)= 1x +1 。 但是x乘以1就是x ,所以最终f(x)= x + 1 。 如果将0设为x,我们得到f(0)= 1f(1)= 2等等。 那是我们函数的图形:

Image for post
Graph of f(x) = x + 1 (Image by Author).
f(x)= x + 1的图形(作者提供的图像)。

Having in mind the key idea about derivatives and functions, let’s put it all together. We’ll see how derivative describes changes of our linear function f(x).

考虑到有关派生和函数的关键思想,让我们将它们放在一起。 我们将看到导数如何描述线性函数f(x)的变化

增长还是衰减? (Growth or decay?)

To determine the change of our function f(x) = x + 1, we can take a look at its graph and calculate what’s the change on the vertical axis when the value on the horizontal axis (x) changes by one unit.

为了确定函数f(x)= x + 1的变化 ,我们可以看一下它的图,并计算水平轴(x)的值变化一个单位时垂直轴的变化。

Image for post
Deltas (Δ) of x and f(x) (Image by Author).
x和f(x)的增量(Δ)(作者提供的图像)。

As you can see in the picture, if we change x by 1 (Δx = 1), it results in grow of f(x) by 1 (Δf(x) = 1). Our line is going up, it’s increasing. And that’s exactly what a parameter tells us (a = 1).

如您在图片中看到的,如果我们将x改变1( Δx= 1 ),则会导致f(x)增长1( Δf(x)= 1 )。 我们的生产线正在上升,正在增加。 而这正是一个参数告诉我们(A = 1)。

Image for post
“a” coefficient of a linear function (Image by Author).
线性函数的“ a”系数(作者提供的图像)。

If a would be negative, for example, a = -1, our line would go down. And the function would decrease by 1 unit per 1 unit change of x.

如果a为负,例如a = -1 ,则我们的行将下降。 并且每x改变1个单位,该函数将减少1个单位。

But what happens when our function is not a line, but a curve? In such cases, we need to check how our function is changing at each point that is interesting for us. The curve can increase, decrease, or be constant in different areas of the space.

但是,当我们的功能不是直线而是曲线时会发生什么呢? 在这种情况下,我们需要检查我们感兴趣的每个点的功能如何变化。 曲线可以在空间的不同区域中增加,减少或保持不变。

Image for post
Tangent (Image by Author).
切线(作者提供的图像)。

To check the change of function in a given point we can think of tangent in this point of the curve (green line) and the a coefficient of this tangent. It has information about the change.

要检查给定点的函数变化,我们可以考虑曲线的该点(绿线)的切线和该切线系数。 它具有有关更改的信息。

统治一切的规则 (Rules to rule them all)

Graphs are a really useful form of visualizing functions, however, in more complex scenarios it’s not easy to plot a graph. Functions can have more dimensions than we’re able to see and imagine. Finally, sometimes it’s just easier to calculate the derivative that plot the function.

图形是可视化功能的一种非常有用的形式,但是,在更复杂的场景中,绘制图形并不容易。 函数的维度超出我们所能看到和想象的范围。 最后,有时更容易计算出绘制函数的导数。

Fortunately, there is a set of rules we can use to calculate derivatives. Let’s introduce 3 simple yet useful ones.

幸运的是,我们可以使用一组规则来计算导数。 让我们介绍3个简单而有用的方法。

常数的导数 (The derivative of a constant)

Constant means no change at all. As a result, the derivative of something constant is equal to zero. As simple as that. This idea is compatible with our considerations regarding a coefficient of a linear function.

常数表示完全没有变化。 结果,常数的导数等于零。 就如此容易。 这种想法与我们有关的线性函数系数考虑兼容。

If a = 0, the only things that is left in the function is parameter b, so f(x) = b. And b is a constant number like 4. Let’s have a look at the graph:

如果a = 0,则函数中仅剩下参数b ,因此f(x)= bb是一个像4的常数。让我们看一下图:

Image for post
A constant function f(x) = 4 (Image by Author).
常数函数f(x)= 4(作者提供的图像)。

Extremely stable, isn’t it?

非常稳定,不是吗?

幂的导数 (The derivative of a power)

Image for post
Derivative of a power (image by Author).
幂的导数(作者提供的图像)。

Calculating the derivative of a power is also very simple. Having function f(x)=xⁿ, we put n before x and raise x to the power of n-1. Symbol f ’(x) means the derivative of function f(x). For example:

计算幂的导数也非常简单。 有函数f(x)=xⁿ,我们n放在x和加薪十大之前N-1的能力。 符号f'(x)表示函数f(x)的导数。 例如:

Image for post
Derivative of x² (image by Author).
x²的导数(作者提供的图片)。

Actually, this function is a parabola:

实际上,此函数是抛物线:

Image for post
Parabola slopes (image by Author).
抛物线坡度(作者提供的图像)。

In point A a derivative will be negative, because the tangent slope is decreasing. Our parabola goes through (0, 0), so in point A (to the left of 0) x will be negative, e.g. -5. We can calculate it:

在点A上 ,导数将为负,因为切线斜率正在减小。 我们的抛物线穿过(0,0),因此在点A (位于0的左侧) x为负,例如-5。 我们可以计算出:

Image for post
Negative derivative value for x = -5 (image by Author).
x的负导数值= -5(作者提供的图片)。

When we choose point B on the other side of the axis, x = 5, we see that tangent line is going up. Derivative at this point should be positive. Let’s check it:

当我们选择轴另一侧的Bx = 5时 ,我们会看到切线在上升。 此时的导数应为正。 让我们检查一下:

Image for post
Positive derivative value for x = 5 (image by Author).
x = 5的正导数值(作者提供的图像)。

连锁规则 (Chain rule)

It sounds a little bit spooky, chains, ghosts, etc. Ok, it’s the most complex rule we learn today, but no worries, we’ll follow a simple example.

听起来有点怪异,连锁,鬼影等。好的,这是我们今天学习的最复杂的规则,但不用担心,我们将举一个简单的例子。

Chain rule is useful when we need to calculate a derivative of so-called composite functions. You can imagine a composite function, as a function that includes another function inside. To spark your imagination even more, composite functions are like Russian dolls.

当我们需要计算所谓的复合函数的导数时,链式规则很有用 您可以将复合函数想象为内部包含另一个函数的函数。 为了激发您的想象力,复合功能就像俄罗斯的娃娃一样。

Image for post
Photo by Iza Gawrych on Unsplash
Iza Gawrych在Unsplash上拍摄的照片

Having function f that contains function g is f(g(x)). We calculate the derivative of function f using this formula:

具有包含函数g的函数ff(g(x))。 我们使用以下公式计算函数f的导数:

Image for post
Chain rule (image by Author).
链式规则(作者提供的图像)。

Let’s decipher it. The first part of a chain rule says that we have to calculate a derivative of a function f’(g(x)), so the derivative of an “outside” function. Then we have to multiply it by a derivative of an inner function g’(x).

让我们破译它。 链式规则的第一部分说,我们必须计算函数f'(g(x))的导数,因此必须计算“外部”函数的导数。 然后,我们必须将其乘以内部函数g'(x)的导数

An example will shed some light on these chains. Let’s have a function g(x) = x² and function f(g(x)) = (x²)². It’s equal to x⁴ and using the power rule we know that (x⁴)’ is equal to 4x³. But for the sake of example let’s calculate it using the chain rule and check if we get the same result.

一个例子将阐明这些链条。 让我们有一个函数g(x)=x²和函数f(g(x))=(x²)² 。 它等于x⁴,并且使用幂定律我们知道(x⁴) '等于4x³ 。 但是为了举例,让我们使用链式规则进行计算,并检查是否得到相同的结果。

So the first step is to calculate the derivative of the outer function f’(g(x)), in our case it’s (g(x))². So we use a power rule and we get:

因此,第一步是计算外部函数f'(g(x))的导数 ,在本例中为(g(x))² 。 因此,我们使用幂规则,得到:

Image for post
Derivative of an outer function (image by Author).
外部函数的导数(作者提供的图像)。

The second step is to calculate the derivative of the inner function g(x), let’s use power rule again:

第二步是计算内部函数g(x)的导数,让我们再次使用幂规则:

Image for post
Derivative of an inner function (image by Author).
内部函数的派生(作者提供的图像)。

Finally, we have to multiply the derivative of an outer function by derivative of an inner function:

最后,我们必须将外部函数的导数乘以内部函数的导数:

Image for post
Derivative of a composite function (image by Author).
复合函数的导数(作者提供的图像)。

Yes! We got the same result as for using the power rule. It means our chain rule works!

是! 我们得到的结果与使用幂规则相同。 这意味着我们的连锁规则有效!

用它! (Use it!)

Now, you got the intuition as well as simple mathematical apparatus you can use in practice. If you’re interested in Artificial Intelligence you can use this knowledge to get a more in-depth understanding of Machine Learning algorithms (e.g. Gradient Descent).

现在,您已经获得了直觉以及可以在实践中使用的简单数学工具。 如果您对人工智能感兴趣,则可以使用此知识对机器学习算法(例如Gradient Descent )有更深入的了解。

If you’re not into AI at all, but you love puzzles (Sudoku, crosswords), I encourage you to grab some Math book and play by calculating derivatives. It’s a great brain training and you’ll get addicted to solving more and more challenging examples.

如果您根本不喜欢AI,但是您喜欢拼图(数独,填字游戏),那么我建议您拿些数学书,并通过计算导数来玩。 这是一次很棒的大脑训练,您将沉迷于解决越来越多具有挑战性的示例。

If these ideas don’t appeal to you, you still gained knowledge about one of the very important Mathematics tool, widely used in many domains. You won’t be surprised when you meet derivatives someday in the future.

如果这些想法对您没有吸引力,您仍然会获得关于在许多领域中广泛使用的非常重要的数学工具之一的知识。 将来某天遇到衍生产品时,您不会感到惊讶。

参考书目 (Bibliography)

  1. https://www.math.uh.edu/~tomforde/calchistory.html

    https://www.math.uh.edu/~tomforde/calchistory.html

  2. https://en.wikipedia.org/wiki/History_of_calculus

    https://zh.wikipedia.org/wiki/History_of_calculus

  3. Stroud K.A., Booth Dexter J., Engineering Mathematics, ISBN: 978–0831133276.

    斯特劳德·卡(Stroud KA),布斯·德克斯特(Booth Dexter J.),工程数学,ISBN:978–0831133276。

翻译自: https://medium.com/swlh/everything-you-always-wanted-to-know-about-derivatives-9cb5c36581da

蓝牙一段一段

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/388257.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Linux基础命令---ifup、ifdown

ifupifup指令用来启动网络接口设备,设备必须是定义在“/etc/sysconfig/network-scripts/ifcfg-ethX”或者“/etc/sysconfig/network”的文件。这些脚本通常使用一个参数:配置的名称(例如eth0)。在引导序列中,使用“boot”的第二个参数调用它们…

OllyDBG 入门之四--破解常用断点设

OllyDBG 入门之四--破解常用断点(转) 软件汉化2010-07-08 16:25:23 阅读76评论0 字号:大中小 订阅 bpx hmemcpy 破解万能断点,拦截内存拷贝动作 bpx Lockmytask 当你用其它断点都无效时可以试一下,这个断点拦截…

POJ1204 Word Puzzles

传送门 这题果然是AC自动机的大好题! 题目的大意是,给定一个l*c的大网格,每个格子里有一个字符,每个格子可以向八个方向形成字符串,问给定的字符串在哪里能被匹配以及在网格中出现的方向(A代表北&#xff0…

普通话测试系统_普通话

普通话测试系统Traduzido/adaptado do original por Vincius Barqueiro a partir do texto original “Writing Alt Text for Data Visualization”, escrito por Amy Cesal e publicado no blog Nightingale.Traduzido / adaptado由 VinciusBarqueiro 提供原始 文本“为数据可…

Mac OS 被XCode搞到无法正常开机怎么办?

Mac OS 被XCode搞到无法正常开机怎么办? 第一天拿到这台air的时候,迫不及待地把从别处搜集来的XCode 3.2.5iOS SDK 4.1的dmg安装了上来,结果系统直接崩溃,再开机就不能正常开机,总是碰到kernel panic。这不坑爹吗…… …

美国队长3:内战_隐藏的宝石:寻找美国最好的秘密线索

美国队长3:内战There are plenty of reasons why one would want to find solitude in the wilderness, from the therapeutic effects of being immersed in nature, to not wanting to contribute to trail degradation and soil erosion on busier trails.人们有很多理由想要…

Java入门第三季——Java中的集合框架(中):MapHashMap

1 package com.imooc.collection;2 3 import java.util.HashSet;4 import java.util.Set;5 6 /**7 * 学生类8 * author Administrator9 * 10 */ 11 public class Student { 12 13 public String id; 14 15 public String name; 16 17 public Set<…

【译】 WebSocket 协议第八章——错误处理(Error Handling)

概述 本文为 WebSocket 协议的第八章&#xff0c;本文翻译的主要内容为 WebSocket 错误处理相关内容。 错误处理&#xff08;协议正文&#xff09; 8.1 处理 UTF-8 数据错误 当终端按照 UTF-8 的格式来解析一个字节流&#xff0c;但是发现这个字节流不是 UTF-8 编码&#xff0c…

升级xcode5.1 iOS 6.0后以前的横屏项目 变为了竖屏

升级xcode5.1 iOS 6.0后以前的横屏项目 变为了竖屏&#xff0c;以下为解决办法&#xff1a; 在AppDelegate 的初始化方法 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions中 将 [window addSubview: viewCon…

动漫数据推荐系统

Simple, TfidfVectorizer and CountVectorizer recommendation system for beginner.简单的TfidfVectorizer和CountVectorizer推荐系统&#xff0c;适用于初学者。 目标 (The Goal) Recommendation system is widely use in many industries to suggest items to customers. F…

Wait Event SQL*Net more data to client

oracle 官方给的说法是 C.3.152 SQL*Net more data to client The server process is sending more data/messages to the client. The previous operation to the client was also a send. Wait Time: The actual time it took for the send to complete 意味着server process…

1.3求根之牛顿迭代法

目录 目录前言&#xff08;一&#xff09;牛顿迭代法的分析1.定义2.条件3.思想4.误差&#xff08;二&#xff09;代码实现1.算法流程图2.源代码&#xff08;三&#xff09;案例演示1.求解&#xff1a;\(f(x)x^3-x-10\)2.求解&#xff1a;\(f(x)x^2-1150\)3.求解&#xff1a;\(f…

libzbar.a armv7

杨航最近在学IOS&#xfeff;&#xfeff; http://download.csdn.net/download/lzwxyz/5546365 我现在用的是这个&#xff1a;http://www.federicocappelli.net/2012/10/05/zbar-library-for-iphone-5-armv7s/ 点它的HERE开始下载 下载的libzbar.a库&#xff0c;如何查看 …

Alex Hanna博士:Google道德AI小组研究员

Alex Hanna博士是社会学家和研究科学家&#xff0c;致力于Google的机器学习公平性和道德AI。 (Dr. Alex Hanna is a sociologist and research scientist working on machine learning fairness and ethical AI at Google.) Before that, she was an Assistant Professor at th…

三位对我影响最深的老师

我感觉&#xff0c;教过我的老师们&#xff0c;不论他们技术的好坏对我都是有些许影响的。但是让人印象最深的好像只有寥寥几位。 第一位就是小学六年级下册教过我的语文老师。他是临时从一个贫困小学调任过来的&#xff0c;不怎么管班级&#xff0c;班里同学都在背地里说他不会…

安全开发 | 如何让Django框架中的CSRF_Token的值每次请求都不一样

前言 用过Django 进行开发的同学都知道&#xff0c;Django框架天然支持对CSRF攻击的防护&#xff0c;因为其内置了一个名为CsrfViewMiddleware的中间件&#xff0c;其基于Cookie方式的防护原理&#xff0c;相比基于session的方式&#xff0c;更适合目前前后端分离的业务场景&am…

UNITY3D 脑袋顶血顶名

&#xfeff;&#xfeff;杨航最近在学Unity3D&#xfeff;&#xfeff; using UnityEngine; using System.Collections; public class NPC : MonoBehaviour { //主摄像机对象 public Camera camera; //NPC名称 private string name "我是doud…

一个项目的整个测试流程

最近一直在进行接口自动化的测试工作&#xff0c;同时对于一个项目的整个测试流程进行了梳理&#xff0c;希望能对你有用~~~ 需求分析&#xff1a; 整体流程图&#xff1a; 需求提取 -> 需求分析 -> 需求评审 -> 更新后的测试需求跟踪xmind 分析流程&#xff1a; 1. 需…

python度量学习_Python的差异度量

python度量学习Hi folks, welcome back to my new edition of the blog, thank you so much for your love and support, I hope you all are doing well. In today’s learning, we will try to understand about variance and the measures involved in it. Although the blo…

多个摄像机之间的切换

杨航最近在学Unity3D&#xfeff;&#xfeff; Unity3D入门 第捌章: 多个摄像机之间的切换 内容描述&#xff1a;这章&#xff0c;我们来学习一下同个场景中多个摄像机怎么切换。 接着我们创建一个空对象 GameObject -> Create Empty 命名为CamearController&#xff0…