Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bs2ri是如何计算的,源码中也没有找到 #342

Open
sparksWLL opened this issue Oct 12, 2023 · 0 comments
Open

bs2ri是如何计算的,源码中也没有找到 #342

sparksWLL opened this issue Oct 12, 2023 · 0 comments

Comments

@sparksWLL
Copy link

对于问题fieldD = np.array([[4,4,5],[1,2,3],[10,9,5],[0,0,1],[0,0,0],[1,1,1],[1,1,1],[0,1,0]])
chorm = np.array([[1,0,1,1,1,0,0,0,1,1,1,0,1],
[0,1,0,0,1,1,0,1,0,1,1,1,1],
[0,0,0,1,1,1,0,0,0,0,1,0,1]])
phen = ea.bs2ri(chorm,fieldD)
《Geatpy数据结构》文档出给出的结果是Phen =
7.6 5 11.51612903
3.4 8 6.87096774
1.6 7 5.32258065
而我代码运行的结果是
[[7.6 6. 4.41935484]
[3.4 8. 3.64516129]
[1.6 8. 3.38709677]]。
希望能告知bs2ri的具体计算过程,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant