Euclidean Distance: Math, Applications and Code

  Рет қаралды 15,793

Radu Mariescu-Istodor

Radu Mariescu-Istodor

Күн бұрын

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

Пікірлер: 96
@Radu
@Radu 11 ай бұрын
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? :-)
@unknown-bx8my
@unknown-bx8my 11 ай бұрын
Awesome video as usual😎
@Radu
@Radu 9 ай бұрын
​@@unknown-bx8my Thanks!
@___d3p1
@___d3p1 11 ай бұрын
This video deserves a prize! Great visualization and explanation! It opens your mind!
@Radu
@Radu 11 ай бұрын
Glad you liked it! :-)
@Frankslaboratory
@Frankslaboratory 11 ай бұрын
Your visuals are getting better and better.
@Radu
@Radu 11 ай бұрын
Thanks!
@javifontalva7752
@javifontalva7752 11 ай бұрын
Pure magic!!
@knightullas6946
@knightullas6946 11 ай бұрын
🎉
@pesterenan
@pesterenan 11 ай бұрын
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!!!
@Radu
@Radu 11 ай бұрын
Wow, thanks! :-) [btw, looks like your drawing made it here as well]
@pesterenan
@pesterenan 11 ай бұрын
@Radu Yeah! That is so cool, hahaha. You really know how to integrate your viewers on your videos :D
@Radu
@Radu 8 ай бұрын
I try :-)
@zaks88
@zaks88 2 ай бұрын
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
@Radu
@Radu 2 ай бұрын
I'm happy you got another perspective :-)
@nathanoy_
@nathanoy_ 9 ай бұрын
This video is incredible! Glad i found your channel. This made me instantly subscribe to your channel.
@Radu
@Radu 9 ай бұрын
Glad to hear you liked the video and thanks for coming to the channel :-)
@PrantikNoor
@PrantikNoor 11 ай бұрын
This is the first time, I felt the need of higher dimension. 😙
@Radu
@Radu 11 ай бұрын
:-) Good to hear!
@zlackbiro
@zlackbiro 28 күн бұрын
And the most bizarre thing is everything he do is in JavaScript. Hahahah. So simple and clean. I love JavaScript.
@Radu
@Radu 27 күн бұрын
:-)
@jholloway77
@jholloway77 2 ай бұрын
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!
@Radu
@Radu 2 ай бұрын
It's great you found your own application to use it in :-) Nice work!
@csguru8211
@csguru8211 2 ай бұрын
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.
@Radu
@Radu 2 ай бұрын
Glad I could help :-) Thanks for watching!
@AsifZeeshan
@AsifZeeshan 3 ай бұрын
Simply! Awesome! Really easy and intuitive explanation.
@Radu
@Radu 3 ай бұрын
Thank you! :-)
@basiccoder2166
@basiccoder2166 11 ай бұрын
what a great visualization and edits props to the editor
@Radu
@Radu 11 ай бұрын
Thanks!
@User36282
@User36282 6 ай бұрын
This was really engaging, I loved it, thank you!
@Radu
@Radu 6 ай бұрын
Glad to hear :-) thanks for watching!
@EnglishRain
@EnglishRain 11 ай бұрын
Fantastic video, superb explanation & visualization
@Radu
@Radu 11 ай бұрын
Glad you liked it!
@javifontalva7752
@javifontalva7752 11 ай бұрын
Great! You always make my day! Thanks!!!
@Radu
@Radu 11 ай бұрын
Glad to hear that!
@alexsouza22
@alexsouza22 10 ай бұрын
Great video! Thanks for all the effort to make it more digestive average humans
@Radu
@Radu 10 ай бұрын
Thanks for watching!
@plapbandit
@plapbandit 11 ай бұрын
I needed this, thanks Doc
@Radu
@Radu 11 ай бұрын
You're welcome :-)
@user-sn4nb3ei8p
@user-sn4nb3ei8p Ай бұрын
admirations for the effort!
@Radu
@Radu Ай бұрын
Thanks :-)
@MrSilversMathSheets
@MrSilversMathSheets 9 ай бұрын
This is done very well!
@Radu
@Radu 9 ай бұрын
Thank you :-) I hope it helps many people.
@freigeist2147
@freigeist2147 4 ай бұрын
Very good work on this Video, Thanks ! :)
@Radu
@Radu 4 ай бұрын
You're welcome. Thanks for watching :-)
@BrettCoffin
@BrettCoffin 11 ай бұрын
Brilliant ;) Thank you
@Radu
@Radu 11 ай бұрын
Glad you liked it!
@tohirasadov689
@tohirasadov689 11 ай бұрын
Really wonderfull job!...............The best of the best my friend.
@Radu
@Radu 11 ай бұрын
Thank you!
@lightyagami6823
@lightyagami6823 11 ай бұрын
If only my teachers were like you :)
@Radu
@Radu 11 ай бұрын
Well, teachers teach things... So if you learned something from this, I was your teacher :-)
@wgalloPT
@wgalloPT 8 ай бұрын
This is fantastic
@Radu
@Radu 8 ай бұрын
Thank you!
@outsomnia
@outsomnia 11 ай бұрын
your videos are actually best and it's not even close lol
@Radu
@Radu 11 ай бұрын
Thanks for watching :-)
@ninjacodertech
@ninjacodertech 11 ай бұрын
wow that was really interesting!
@Radu
@Radu 11 ай бұрын
Glad you think so! :-)
@adrian__4678
@adrian__4678 4 ай бұрын
Esti tare!
@Radu
@Radu 4 ай бұрын
:-) Merci!
@neilclay5835
@neilclay5835 11 ай бұрын
very professional video
@Radu
@Radu 11 ай бұрын
Thank you!
@Son_Goku2018
@Son_Goku2018 11 ай бұрын
that is the most entertaining intro so far
@Radu
@Radu 11 ай бұрын
Thanks!
@JoaoLucas-tw2pt
@JoaoLucas-tw2pt 11 ай бұрын
you're being good with video editing
@Radu
@Radu 11 ай бұрын
Thank you!
@mirjalol49
@mirjalol49 11 ай бұрын
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
@Radu
@Radu 11 ай бұрын
Glad you liked it. Thanks for watching :-)
@sharmarahul384
@sharmarahul384 11 ай бұрын
Your animations are amazing! What do u use for it?❤❤
@Radu
@Radu 11 ай бұрын
Usually I just code them in JavaScript. For this one I used ThreeJs as well.
@sharmarahul384
@sharmarahul384 11 ай бұрын
@@Radu I thought I am the only one who wants to do things from scratch! 😅😅
@Radu
@Radu 8 ай бұрын
Many people want (need) to do things fast, so 'from scratch' is rare nowadays.
@jakobmusic9187
@jakobmusic9187 11 ай бұрын
well made
@Radu
@Radu 11 ай бұрын
Thank you!
@viktoreidrien7110
@viktoreidrien7110 11 ай бұрын
so basically any feature added to distinguish shapes from the drawings is a new dimension right?
@Radu
@Radu 11 ай бұрын
Exactly!
@viktoreidrien7110
@viktoreidrien7110 11 ай бұрын
@@Radu nice!! Thank you my friend! Looooove your content, keep it up please!!!
@Radu
@Radu 11 ай бұрын
​@@viktoreidrien7110 I'll try ;-)
@ChandrashekarCN
@ChandrashekarCN 3 ай бұрын
💖💖💖💖
@Radu
@Radu 3 ай бұрын
:-)
@AZHARakaGoat
@AZHARakaGoat 11 ай бұрын
🥳 I have a q How to make something like gpt with the same things like we did it in recognition
@Radu
@Radu 11 ай бұрын
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.
@unknown-bx8my
@unknown-bx8my 9 ай бұрын
Wow! Very cool and informative question and answer.
@Radu
@Radu 9 ай бұрын
@@unknown-bx8myThank you :-)
@gaming_zen_99
@gaming_zen_99 11 ай бұрын
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?
@Radu
@Radu 11 ай бұрын
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.
@gaming_zen_99
@gaming_zen_99 11 ай бұрын
@@Radu Thanks bro! Highly appreciated.
@klirmio21
@klirmio21 5 ай бұрын
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...
@Radu
@Radu 5 ай бұрын
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 KZbin). The Pythagorean theorem is from one of my other explainers (check out the math and code fundamentals playlist).
@klirmio21
@klirmio21 5 ай бұрын
@@Radu 🤯🤯🤯 I will, Radu!
@javifontalva7752
@javifontalva7752 11 ай бұрын
12:37 How can you type in both languages at the same time?😮
@Radu
@Radu 11 ай бұрын
Magic of editing :-D
@javifontalva7752
@javifontalva7752 11 ай бұрын
@@Radu Editing is a kind of magic. But the real magic is watching you coding. I am still a wannabe magician.
@TJ-hs1qm
@TJ-hs1qm 7 ай бұрын
4:41 Khaby 🥰😂
@Radu
@Radu 7 ай бұрын
:-))
@omkarmudras756
@omkarmudras756 9 ай бұрын
I think we begginers intermediates find this things fascinating. Just an fact no offence.
@Radu
@Radu 9 ай бұрын
Glad to hear :-) why would I be offended by that? :-D
Machine Learning Course - Lesson 12: Elongation Feature
23:54
Radu Mariescu-Istodor
Рет қаралды 1,8 М.
Counterfeit Coins and Balanced Ternary #SoME3
13:11
Mathematical Visual Proofs
Рет қаралды 11 М.
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 56 МЛН
Заметили?
00:11
Double Bubble
Рет қаралды 3,3 МЛН
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 24 МЛН
StatQuest: K-means clustering
8:31
StatQuest with Josh Starmer
Рет қаралды 1,5 МЛН
Distance from Point to Segment Explained using JavaScript
25:11
Radu Mariescu-Istodor
Рет қаралды 4,7 М.
The Fascinating Math behind Piston Extenders #SoME3
20:08
mattbatwings
Рет қаралды 554 М.
Every Distance in Data Science (Almost 100K Subs!)
21:25
ritvikmath
Рет қаралды 10 М.
Jonathan Gorard - Discrete Spacetime, Emergent Geometry and Computable Quantum Gravity
1:27:31
Quantum Gravity and All of That
Рет қаралды 4,5 М.
The Duplication Glitch in Math (Banach-Tarski Theorem)
10:32
MathPuppy
Рет қаралды 38 М.
What's Behind the Parabola? (#SoME3)
10:47
Geometry
Рет қаралды 15 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 594 М.
Unsolved Math: The No-Three-In-Line Problem #SOME3
12:52
Signore Galilei
Рет қаралды 150 М.
Rethinking the real line #SoME3
14:54
Proof of Concept
Рет қаралды 92 М.
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 56 МЛН