Euclidean Distance: Math, Applications and Code
HTML-код
- Опубликовано: 6 авг 2024
- Welcome to a comprehensive guide on the Euclidean distance! In this video, you'll learn how to calculate the straight-line distance between two points, starting with 1D and gradually expanding to higher dimensions.
Understanding Euclidean distance is crucial in various fields, including mathematics, data science, and computer science. I'll demystify this concept by providing intuitive visualizations and animations, making it easier for all levels to understand.
Not only will we explore the theory behind Euclidean distance, but we'll also dive into real-world examples where it finds practical applications. These examples relate to my self-driving car and machine learning courses (links below).
To help you apply this knowledge, we'll implement the Euclidean distance using JavaScript and Python. Whether you're a beginner or an experienced coder, our tutorial will equip you with the skills to implement Euclidean distance calculations in your own projects.
⭐ LINKS ⭐
Pythagorean Theorem: • Pythagorean Theorem: P...
Algorithm used by us humans (with a ruler): • Distance without Pytha...
Machine learning course:
• Machine Learning Course
Self-driving car course:
• Self-driving Car :: Ph...
Tutorials where I apply the Euclidean distance:
AR Pinwheel: • Coding an Augmented Re...
Coding with ChatGPT: • Coding Angry Birds Clo...
AR Portal Game: • Doctor Strange portal ...
Personal Avatar (12h): • JavaScript Talking Ava...
Kamehameha: • JavaScript voice activ...
AR Fireworks: • Augmented Reality Fire...
Learn Machine Learning: • Learn Machine Learning...
AR Theremin: • 🎃 Coding a Theremin in...
Matrix Rain T-Shirt: • JavaScript Matrix Effe...
AR Lightsaber: • JavaScript lightsaber ...
Spiderman's Web Shooters: • 🕷️🕷️ Spiderman's web s...
AR Torch: • Video Effects on HTML ...
GPS Distance: • GPS App in JavaScript ...
My videos with other distances:
Tree measuring app: • JavaScript Triangulati...
Distance measuring app: • Using Triangulation In...
#SoME3
I've been wanting to make a video about the Euclidean distance for the last 3 years, but visualizing higher dimensional spaces is hard and I didn't have the skills to do it back then. Now, with an extra push from the #SoME3 competition, I managed to do something I'm quite happy with. What do you guys think? :-)
Awesome video as usual😎
@@unknown-bx8my Thanks!
This video deserves a prize! Great visualization and explanation! It opens your mind!
Glad you liked it! :-)
Your visuals are getting better and better.
Thanks!
Pure magic!!
🎉
My god that was simply INCREDIBLE! The visualization from the car "learning" to drive made me understand how that type of AI classifies the sensors distance to decide which way to turn! Awesome video Radu!!!
Wow, thanks! :-) [btw, looks like your drawing made it here as well]
@Radu Yeah! That is so cool, hahaha. You really know how to integrate your viewers on your videos :D
I try :-)
This was so clear and concise, it's actually crazy. You explain things so well! This was unimaginably useful, many thanks!
Thank you. Makes me happy to hear I was of help! :-)
This video is incredible! Glad i found your channel.
This made me instantly subscribe to your channel.
Glad to hear you liked the video and thanks for coming to the channel :-)
Love this video so much. Clear explanations and surprisingly high production value - with your help I managed to grok it in a way I never had before. You are a godsend. Ta
I'm happy you got another perspective :-)
Oh my god!!!! Your tutorial are like dream come true for those who want to understand things so clearly as you explain. I want to become a teacher like you. I'm also learning a lot from your videos. Thankyou for putting so much efforts in making these videos and making it available for free.
Glad I could help :-) Thanks for watching!
This is the first time, I felt the need of higher dimension. 😙
:-) Good to hear!
This was fantastic.
I used what I learn to make an application that matched products by their RGB color values, pairing the different products brands with the closest colored products from other brands.
Not as fancy as the car application, but using it to automate data saved me a day of work!
It's great you found your own application to use it in :-) Nice work!
what a great visualization and edits
props to the editor
Thanks!
And the most bizarre thing is everything he do is in JavaScript. Hahahah. So simple and clean. I love JavaScript.
:-)
Fantastic video, superb explanation & visualization
Glad you liked it!
Simply! Awesome! Really easy and intuitive explanation.
Thank you! :-)
This was really engaging, I loved it, thank you!
Glad to hear :-) thanks for watching!
Great! You always make my day! Thanks!!!
Glad to hear that!
I needed this, thanks Doc
You're welcome :-)
This is done very well!
Thank you :-) I hope it helps many people.
Very good work on this Video, Thanks ! :)
You're welcome. Thanks for watching :-)
Great video! Thanks for all the effort to make it more digestive average humans
Thanks for watching!
admirations for the effort!
Thanks :-)
Brilliant ;)
Thank you
Glad you liked it!
I love the visualization and animations. Do you mind sharing what tools you used in creating the visualization? Great video
Hi, I actually coded all visualisations in JavaScript. I also used ThreeJS.
damnnnn man, what else u can do? why noone on the internet shows smth u do? u are so smart man. can u upload such mind blowing things
pls
Glad you liked it. Thanks for watching :-)
Really wonderfull job!...............The best of the best my friend.
Thank you!
If only my teachers were like you :)
Well, teachers teach things...
So if you learned something from this, I was your teacher :-)
This is fantastic
Thank you!
wow that was really interesting!
Glad you think so! :-)
your videos are actually best and it's not even close lol
Thanks for watching :-)
Esti tare!
:-) Merci!
very professional video
Thank you!
that is the most entertaining intro so far
Thanks!
you're being good with video editing
Thank you!
Your animations are amazing! What do u use for it?❤❤
Usually I just code them in JavaScript. For this one I used ThreeJs as well.
@@Radu I thought I am the only one who wants to do things from scratch! 😅😅
Many people want (need) to do things fast, so 'from scratch' is rare nowadays.
so basically any feature added to distinguish shapes from the drawings is a new dimension right?
Exactly!
@@Radu nice!! Thank you my friend! Looooove your content, keep it up please!!!
@@viktoreidrien7110 I'll try ;-)
🥳
I have a q
How to make something like gpt with the same things like we did it in recognition
First step is to convert words into numbers (feature vectors). You can look up word2vec online (there are others as well). It's not the full story for getting something like GPT but it's the step that makes the problem more similar to those we studied.
Wow! Very cool and informative question and answer.
@@unknown-bx8myThank you :-)
well made
Thank you!
💖💖💖💖
:-)
12:37 How can you type in both languages at the same time?😮
Magic of editing :-D
@@Radu Editing is a kind of magic. But the real magic is watching you coding. I am still a wannabe magician.
Hey Bro! So I have been practicing coding for many month's now but nowadays I feel like I am nothing learning/improving as much as I used to before. What can I do about it?
In general, learning curves look like what you describe. You quickly get the basics down, and then improvements naturally come slower. It might be just normal.
@@Radu Thanks bro! Highly appreciated.
bro your intro... omg.... you probably could be working at Google and earn so much money with your skills and brains... the intro amazed me holy fuck
Edited after I watched it: Bruh.... I am speechless... If only I had such resources when I was at school, I would've probably finished it with much better grades. How do you make all those visualizations? Is that a program, or what? Like, when you showed the math, or when there were sensors showing when the car moving and on the right the whole "tree" was lighting up accordingly...
There's a lot intertwined to Hypotenuse and pythagorean theorem, and squre root...
Thank you :-) I'm glad to hear you liked it so much. I coded everything you see here, pretty much... visualizing the math, the self-driving car with the sensors (I have a full course on that) I just used it here (easy). And the drawing recognizer is from my machine learning course (also on RUclips). The Pythagorean theorem is from one of my other explainers (check out the math and code fundamentals playlist).
@@Radu 🤯🤯🤯 I will, Radu!
Esti cumva absolvent de la universitate? Fiindca imi suna familiar numele tau
Da, la mai multe :-) la care universitate te referi?
@@Radu Universitatea Bucuresti, Poli, Ase? :)
Nu, am fost la Vest, la Timisoara :-)
4:41 Khaby 🥰😂
:-))
I think we begginers intermediates find this things fascinating. Just an fact no offence.
Glad to hear :-) why would I be offended by that? :-D