Skip to content

co_autocorrs NAN issue #32

Description

@Moonzyyy

I was testing what happened when you insert an array of just 0's into pycatch22 and its local C file. Functions that use co_autocorrs, such as Co_firstmin and co_f1, will face a division by zero error and therefore return NaN as a complex number, this happens when dividing F by the divisor.

However, what I found interesting is that running these functions on pycatch22 will return 0, while if you run them locally on C it returns the length of the array. Is this discrepancy happening due to the python wrapper (python_wrapper_int)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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