小编jmp*_*jaz的帖子

Generate conditioned random binary array matrix in python

what could be the most efficient way to generate a mxn binary array matrix which is contrained to the sum per column is equal 0 or 1 ?

somethin like this

[[0,0,1,0,0],
[1,1,0,0,0],
[0,0,0,0,1]
[0,0,0,0,0]]
Run Code Online (Sandbox Code Playgroud)

m and n are going to be fixed, but n is larger than 500000 so iteration methods could take a long time until an appropied matrix is found.

python arrays random numpy matrix

2
推荐指数
1
解决办法
1303
查看次数

如何在python中创建不同大小的两个样本之间的qq图?

我得到了原始样本数据及其模拟数据(不要问我是如何模拟的),我想检查直方图是否匹配.所以最好的方法是,qqplotstatsmodels库不允许不同大小的样本.

python matplotlib histogram data-analysis

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

标签 统计

python ×2

arrays ×1

data-analysis ×1

histogram ×1

matplotlib ×1

matrix ×1

numpy ×1

random ×1