Skip to content

Potential issue with r_squared calculation #38

@TomDonoghue

Description

@TomDonoghue

This is an issue reported via email (I didn't check / verify - putting here for follow up):

I was comparing the outputs of the matlab and python implementations of fooof, and noticed that r_squared didn't match.

In fooof.m , you forgot to take the square of the correlation coefficient:
fooof_results.r_squared = coefs(2)^2;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions