小编wiz*_*bcn的帖子

在Python中计算累积分布函数(CDF)

如何在python中计算累积分布函数(CDF)

我想从我所拥有的点数(离散分布)计算它,而不是像scipy那样的连续分布.

python statistics numpy machine-learning scipy

15
推荐指数
3
解决办法
5万
查看次数

Flow:为什么它会抱怨字符串为空/未定义?

我仍在尝试掌握 Flow 的工作原理,谁能解释一下为什么这个简单的示例会引发错误?

function say(text: string) {
  console.log(text);
}

say('Hello World!'); // This is alright

const text: ?string = 'Hello World!';
say(text); // Error:(219, 5) Cannot call `say` with `text` bound to `text` because null or undefined [1] is incompatible with string [2].
Run Code Online (Sandbox Code Playgroud)

我知道,文本变量可以为空,但是当我调用 say(text) 时,它显然不是空的。

flowtype

4
推荐指数
1
解决办法
3854
查看次数

标签 统计

flowtype ×1

machine-learning ×1

numpy ×1

python ×1

scipy ×1

statistics ×1