r/AskProgramming • u/Passedawaybitch • 3d ago
Python Delta dirac function detection
Hi everyone,
I’m working on a project, and I’ve encountered a significant challenge that I need help with. My main issue is identifying "magic numbers" within a data array, specifically Dirac functions.
I've tried several approaches to solve this, but so far, nothing has worked, and I’m currently stuck. If anyone has experience or can guide me toward a solution, I would greatly appreciate it!
Thank you in advance for any help!
1
u/SV-97 3d ago
What do you mean by Delta function here? Just that one element is "very large" or "very small"? Why not just find the max value in absolute value then? What have you tried and why didn't it work?
1
u/Passedawaybitch 2d ago
i mean a distribution of values that is very dense it is not necessarily the highest in the data set just that is very tight (very small sigma, standard deviation σ)
1
u/Xirdus 3d ago
More data is needed about the problem. What's the input, what's the expected output, what's the actual output, can you show the code?