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

hmm中generate用到的采样方法 #13

Open
raoqiyu opened this issue May 7, 2019 · 0 comments
Open

hmm中generate用到的采样方法 #13

raoqiyu opened this issue May 7, 2019 · 0 comments

Comments

@raoqiyu
Copy link

raoqiyu commented May 7, 2019

def generate(self, length):

        i = 0
        while self.Pi[i]<ran or self.Pi[i]<0.0001:
            ran -= self.Pi[i]
            i += 1
        I.append(i)

这个函数中用到的采样方法具体是什么方法, 有什么参考资料可以看的吗?

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