Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to convert Real data into complex data type #46

Closed
Karn3003 opened this issue Jan 2, 2024 · 2 comments
Closed

Best way to convert Real data into complex data type #46

Karn3003 opened this issue Jan 2, 2024 · 2 comments

Comments

@Karn3003
Copy link

Karn3003 commented Jan 2, 2024

Hi, As you already have worked on CVNN wanted to know your opinion about the following.
I wanted to know the best way to convert real data into complex as just having 0 imaginary parts doesn't seem right and the performance boost isn't great either. Also, vice versa, as just neglecting the imaginary part doesn't we lose information?

@NEGU93
Copy link
Owner

NEGU93 commented Mar 20, 2024

It is likely that if your data is already real-valued, you are good to go with real-valued (conventional) algorithms, no need to convert them just to make it complex.
If you want to convert your real data to complex anyway, you can indeed try something as the Hilbert transform. Or something that makes physical sense, like if you have a time-series signal, making the Fourier transform.

On the contrary, many papers I've seen, that convert complex values to real, use the absolute value of the complex data, ignoring the phase. Or, I would advice if you can, if you have a ND matrix of complex data, transform to (2*N)D matrix with real and imaginary part.

But this is more liked with your application in particular. I cannot do better here than the experts on the topic.

@NEGU93
Copy link
Owner

NEGU93 commented May 30, 2024

I'm closing due to inactivity.

@NEGU93 NEGU93 closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants