Skip to content

ask - doubt about rot and omg #8

@rafaelcb21

Description

@rafaelcb21

Hi sclereid, amazing work, congratulations!!!
I was studying your code and I had a doubt in the function get_circle_fft()
There is a part of the function that you find the rotation (rot) and the frequency (omg)
There are many ways to find these values on the internet but you used a unique way.

I would like to know how this is possible? What would be the mathematical reference to be able to say that half of the rotation will be negative and half of the frequency will also be negative?
e.g:

N = 10
omg = [0, 1, 2, 3, 4, 5, -4, -3, -2, -1]
rot = [1, 1, 1, 1, 1, 1, -1, -1, -1, -1]

Could you help me understand?

def get_circle_fft(array):
    ...
    if i > N/2 :
        rot = -1
            omg = len(z)-i
        else :
            rot = 1
            omg = i  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions