Skip to content

Error in code #4

@eyo11

Description

@eyo11

Noticed an error in line 59:

mom.append(np.sum(xpf)) # compute moment: sum(x^p * f(x))

moms is defined before as moms = [], therefore "mom" in line 59 should be changed to "moms".

I'm also having trouble understanding the use for randvar, if you could kindly explain. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions