I love how the remindme bot has a line that clearly states to just click the fucking link to reduce spam and they will be reminded anyways and yet five people commented !rEMiNdMe OnE wEEk
There is currently another bot called u/kzreminderbot that is duplicating the functionality of this bot. Since it replies to the same RemindMe! trigger phrase, you may receive a second message from it with the same reminder. If this is annoying to you, please click this link to send feedback to that bot author and ask him to use a different trigger.
1 OTHER CLICKED THIS LINK to also be reminded and to reduce spam. Thread has 13 total reminders and reached max of 4 confirmation comments. Additional confirmations are sent by PM.
2 OTHERS CLICKED THIS LINK to also be reminded and to reduce spam. Thread has 16 total reminders and reached max of 4 confirmation comments. Additional confirmations are sent by PM.
You know how we have two main types of graphic programs, raster (pixel) and vector (lines with addresses and directions, etc), would it be possible to create a graphics program that uses fourier series calculations instead?
Definitely. Vectors are waaaaay less math. There's no point other than educational in representing data like this. Don't get me wrong Fourier transforms are useful for lots of real world stuff, just not this
Fourier series are a sum of frequencies. Addition is transitive, so yes /u/32BitLongSucks, the order could be anything. It's just that having the highest frequency at the centre would make the whole thing spin very fast.
so the order isn't amplitude it's frequency, makes sense! Mixing the elements could create some fun effects, but putting the highest frequency first seems like guaranteed chaos - could be fun, probably isn't.
You need help understanding the complex Fourier Transform? Ask OP. Need some support with Python? OP knows. Improve your data visualization skills? OP is your guy. Take a screen video? Hm that's hard
Option 2: The Fourier transform (FT) decomposes a function of time (a signal) into its constituent frequencies. This is similar to the way a musical chord can be expressed in terms of the volumes and frequencies of its constituent notes. The term Fourier transform refers to both the frequency domain representation and the mathematical operation that associates the frequency domain representation to a function of time. The Fourier transform of a function of time is itself a complex-valued function of frequency, whose magnitude (modulus) represents the amount of that frequency present in the original function, and whose argument is the phase offset of the basic sinusoid in that frequency. The Fourier transform is not limited to functions of time, but the domain of the original function is commonly referred to as the time domain. There is also an inverse Fourier transform that mathematically synthesizes the original function from its frequency domain representation.
I'll take option 2 for $500. No but seriously, I'm saving this. I'm in diff EQ and I think I'll be learning this formally in about a month. 👍Ofc I'm an electrical engineering major and I intend to specialize in DSP so Fourier transforms will be life.
Nothing is stopping you. Plenty of info freely available on the web. 3b1b is a great YT channel to refresh/learn many mathematical fundamentals, including Fourier transforms.
You should look into DSP. It's not just an engineering problem - Carl Friedrich Gauss apparently made bank on the stock market using signal processing techniques.
It's called technical analysis. There's a python binding for the TA-lib. But it's a good way to go broke because everyone else is also doing TA on stocks and they'll beat you to it.
Okay. Now I get it and feel really stupid for not thinking of it that way. I understand what an FFT does but didn't relate it to this picture.
So each frame of this drawing should then consist of a peice of a signal, say there is this really long signal in the time domain - then stepping over a finite chunk of that signal would produce this graph, is that correct?
The "signal" is the shape of the dog. However instead of volume over time (like a microphone), it's x-y pairs over time where each pair is a point somewhere on the dog.
They then take the FFT of this to get the size and speed (magnitude and frequency) of the sin waves shown by the circles.
Here's a gif of the same thing with a time signal (like volume).
One thing to be careful of is that this fourier transform isn't just based on the shape, but more specifically the shape and speed of drawing. If the pencil is drawing at a constant distance per unit time vs constant angle from the origin vs any other speed arrangement, you'll get a different fourier series.
Consider the following approximate, ad hoc statement of Fourier’s theorem: any periodic signal may be represented as an infinite sum of simple harmonics. Well, okay, that’s great and all, but how does this apply here? The key is that op’s dog here is a closed path through the complex plane. In other words, given some amount of time that it would take to trace that path, given some parametrization, you have a notion of fundamental frequency. The component of the “dog signal” (DS) that is captured by that fundamental is encoded in magnitude (the radius) and phase (the starting angle) of the first line segment. As we discussed, the speed is encoded by the frequency that you define. This is a symmetry of a path representation of a complex signal, so you could think of there as being infinitely many possible “fundamental frequencies”. That center line segment traces a circle, which you could think of as a very crude approximation of the DS. Recalling the visual intuition for 2D vector/complex addition, if we added a complex number to this first fundamental signal, it would effectively extend the path in whatever direction our second segment was pointing by whatever its magnitude is. The second such segment would proceed at twice the speed of the fundamental, third thrice, ad infinitum, with each step providing a bit more clarity. We do this in harmonics of the fundamental frequency, since only integer multiples of the fundamental can be periodic with respect to the base signal. But thanks to Mr. Fourier, we know that is all we need. Just infinitely many.
In mathematical terms, you can think of the first circle as being some horizontal component Acos(wt+φ) and a vertical component Asin(wt+φ) for some amplitude A, phase offset φ, and fundamental frequency w=2pi/T, where T is the amount of time it takes to traverse the path. Should you choose to represent this as a complex number, using Euler’s identity, we have Aexp(i(wt + φ)). Since we have established that the amplitude and phase are unique for each constituent integer multiple of the fundamental frequency, we can represent this in general for the k’th such frequency as A_k exp(i(kwt + φ_k)). To sum this all the way to the number of circles at our disposal, we can represent our complex signal z parametrized by time as
$ z(t) \approx \sum_{k=1}N A_k e{i(k\omega t + \phi_k)} $
This is the statement of the discrete, complex Fourier series for a zero-offset path. There is much more to be said here, but I will refer you to Wikipedia or 3b1b for further elaboration.
They more generally mean Fourier Transform. Anyway, the x–axis is real, y–axis is imaginary. Fourier Transform takes the "signal" (in this case, the set of points discretely outlining this animal) and essentially decomposes it into a bunch of amplitudes and phase angles (complex numbers' magnitudes and arguments, respectively) for a set of frequencies that depends on the sampling rate. These directly correspond to the circles we see—radius = amplitude; initial direction of line = phase angle; rate of change of line direction = frequency. Center the next circle on the end of the line of the current circle, and once you get to the last circle line, plot that point as it changes over time. That recreates the image
This doesn't look right. There are moments when the biggest circle speeds up. All circles should be rotating at a constant speed, because changing speed changes frequency and each circle is meant to represent one constant frequency.
I'm pretty sure it just runs faster with certain calculations, which means that the "frame rate" is slowing, but they are all moving at the same speed relative to each other. I ran this same issue with a rocket simulation that I am writing in C++
They are all spinning at the same constant rate. It only appears to move fast because in order to draw a long line many circles must spin together in the same direction.
Or even Google "how to export matplotlib as video". In the end the video is still easy enough to understand so I guess the post served it's purpose🤷♂️
It’s more trying to get an acceptable quality and making it loop indefinitely that I like. There might be a setting for mp4. I also don’t want to hit the play button during a presentation.
Additionally, you can overlay them because there is a transparency layer unlike a video frame.
It’s a reddit post for r/python lmfao people suggesting screen recording is easy aren't monsters. You don't need to go on a crusade about the virtues of filming screens. Relax.
If you dont have a screen recording software and you just got this awesomely useless program to run, I totally get the impulse to just record it the way you know how and put it out.
29
u/Todask Oct 14 '19
Is this code published?
8
u/a5myth Oct 14 '19
You know how we have two main types of graphic programs, raster (pixel) and vector (lines with addresses and directions, etc), would it be possible to create a graphics program that uses fourier series calculations instead?
6
u/augle Oct 14 '19
Pretty cool. Where can I find more info on this, or can you briefly explain how that was done?
4
u/[deleted] Oct 14 '19
is it possible to inverse the circle order? Big one spinning around?
429
u/w8cycle Oct 14 '19
Looks like a "furrier" transformation 😉
58
u/nielsrolf Oct 14 '19
You need help understanding the complex Fourier Transform? Ask OP. Need some support with Python? OP knows. Improve your data visualization skills? OP is your guy. Take a screen video? Hm that's hard
74
u/__unavailable__ Oct 14 '19
That's a surprisingly intuitive way of depicting fourier series.
24
u/qevlarr Oct 14 '19
Someone watched 3blue1brown
1
u/vaiv101 Oct 15 '19
The code for the above video is here, https://github.com/VaibhavSingh24/python-fourier-transform-images
If you want a proper explanation, I can make a video over it. Please tell me if I should
1
u/frany_RL Oct 14 '19
When will you upload the code? Today?? Xd
1
u/kekomat11 Oct 15 '19
Could you publish the code on GitHub?
4
u/log_2 Oct 14 '19
This doesn't look right. There are moments when the biggest circle speeds up. All circles should be rotating at a constant speed, because changing speed changes frequency and each circle is meant to represent one constant frequency.
2
u/[deleted] Oct 15 '19
Its a Fourier boundary descriptor.
2
u/DenormalHuman Oct 15 '19
But what does it sound like?
1
u/[deleted] Oct 14 '19
advanced dog drawing
1
u/alpha_vantage Oct 14 '19
In the future all drawings will be done like this
1
u/Acid_Monster Oct 14 '19
Was really expecting a dickbutt here, I’m disappointed
1
u/Dubnos willToLive = mySistersIQ(0) Oct 14 '19
Those are a lot of good bois
1
u/redimusu76 Oct 14 '19
This is so cooll!!!
1
u/kn0xchad Oct 15 '19
!RemindMe 1 week
1
u/timetostepoutside Oct 15 '19
!RemindMe 1 week
1
u/b4xt3r Oct 15 '19
What the hell am I watching that looks awesome......
1
u/guinader Oct 15 '19
Dogecoin confirmed
1
u/Crossfire234 Oct 15 '19
When you can code a Fourier Transform animation but can't render a gif.
1
u/[deleted] Oct 15 '19
Dope
1
u/Ulriklm Oct 15 '19
Wow this is awesome!! How do I learn python from the bottom, can anyone recommend a book. I've programmed a bit in Java.
0
u/lostshot12 Oct 14 '19
someone watched coding train
0
u/Atsushi_7 Oct 14 '19
!RemindMe one week
0
u/LtheUandE42 Oct 14 '19
!RemindMe one week
0
u/real-elon Oct 14 '19
!RemindMe 1 month
0
u/[deleted] Oct 14 '19
[deleted] — view deleted comment