Skip to content

Incorrect normalization factor for 3D Rice distribution #459

@stestoll

Description

@stestoll

The normalization of the Rice function in

def _multirice3dfun(r,nu,sig):

is incorrect.

The first factor in

 P = nu**(n/2-1)/s2*r**(n/2)*np.exp(-(r**2+nu**2)/(2*s2)+nu*r/s2)*I_scaled

should be

 P = nu**(1-n/2)/s2*r**(n/2)*np.exp(-(r**2+nu**2)/(2*s2)+nu*r/s2)*I_scaled

Overall, this error has no effect, since P is numerically normalized afterwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions