The reason this is so complicated is because of a mathematical principle called Factorials.
它之所如此复杂,是因为阶这一数学原理。
Instead of factorial time, it takes linear time.
它不是阶时间, 而是线性时间。
So the n minus k will become b minus a factorial.
所 n 减去 k 将变成 b 减去一个阶。
If this was 7 over 7 minus 2 factorial we would have 7 times 6.
如果这是 7 除 7 减 2 阶,们将有 7 6。
For those who remember from math class, that is seven factorial.
对于那些记得数学课上的人来说,这是七个阶。
So times lambda to the k k over k factorial.
所 lambda 到 k k 阶。
So you end up with 1 times lambda k over k factorial.
所你最终得到 lambda k 的 1 倍于 k 的阶。
Divided by 2 factorial times e to the minus 9 power.
除 2 阶 e 的负 9 次方。
And as you'll see it's actually 2 factorial ways that it can happen.
正如您将看到的,它实际上可通过两种阶方式发生。
You may have heard that there is a function generalizing the factorial to real and even complex inputs, the gamma function.
您可能听说过有一个函数将阶推广到实数甚至复数输入,即伽马函数。
This video by Michael DiFranco about extending the factorial offers another great example of a lesson with good motivation along the way.
Michael DiFranco 制作的这段关于扩展阶的视频提供了另一个很好的例子,说明了一路上具有良好动机的课程。
If this had 3 we would do 3 factorial, and I'll show you how that can happen.
如果它有 3,们会做 3 个阶,会告诉你这是如何发生的。
5 factorial is 5 times 4 times 3 times 2 times 1.
5阶是54321。
Once again, you'll have to know that 0 factorial is equal to 1.
再一次,你必须知道 0 的阶等于 1。
So k factorial could be written as k times k minus 1 factorial.
所 k 阶可写成 k k 减 1 阶。
And here we can make a little bit of a simplification because what's k divided by k factorial?
在这里们可稍微简化一下,因为 k 除 k 的阶是多少?
And we just showed that this is equal to lambda to the kth power over k factorial times e to the minus lambda.
们刚刚证明这等于 lambda 的 k 次方 e 的 k 阶负 lambda。
So this could be rewritten as k times k minus 1 factorial.
所这可改写为 k k 减 1 阶。
So we could rewrite n factorial using the same trick up here.
所们可在这里使用相同的技巧重写 n 阶。
To account for that, you divide out by the extent to which you've overcounted, the number of permutations of four items which looks like four factorial.
为了解释这一点, 您可除多算的程度,即四个项目的排列数量, 看起来像四个阶。
关注我们的微信
下载手机客户端
划词翻译
详细解释