Euclidean Distance: Math, Applications and Code

  Рет қаралды 14,344

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

Пікірлер: 94
@Radu
@Radu 10 ай бұрын
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 10 ай бұрын
Awesome video as usual😎
@Radu
@Radu 8 ай бұрын
​@@unknown-bx8my Thanks!
@___d3p1
@___d3p1 10 ай бұрын
This video deserves a prize! Great visualization and explanation! It opens your mind!
@Radu
@Radu 10 ай бұрын
Glad you liked it! :-)
@csguru8211
@csguru8211 26 күн бұрын
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 26 күн бұрын
Glad I could help :-) Thanks for watching!
@Frankslaboratory
@Frankslaboratory 10 ай бұрын
Your visuals are getting better and better.
@Radu
@Radu 10 ай бұрын
Thanks!
@javifontalva7752
@javifontalva7752 10 ай бұрын
Pure magic!!
@knightullas6946
@knightullas6946 10 ай бұрын
🎉
@pesterenan
@pesterenan 10 ай бұрын
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 10 ай бұрын
Wow, thanks! :-) [btw, looks like your drawing made it here as well]
@pesterenan
@pesterenan 10 ай бұрын
@Radu Yeah! That is so cool, hahaha. You really know how to integrate your viewers on your videos :D
@Radu
@Radu 7 ай бұрын
I try :-)
@jholloway77
@jholloway77 Ай бұрын
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 Ай бұрын
It's great you found your own application to use it in :-) Nice work!
@zaks88
@zaks88 26 күн бұрын
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 25 күн бұрын
I'm happy you got another perspective :-)
@nathanoy_
@nathanoy_ 8 ай бұрын
This video is incredible! Glad i found your channel. This made me instantly subscribe to your channel.
@Radu
@Radu 8 ай бұрын
Glad to hear you liked the video and thanks for coming to the channel :-)
@PrantikNoor
@PrantikNoor 10 ай бұрын
This is the first time, I felt the need of higher dimension. 😙
@Radu
@Radu 10 ай бұрын
:-) Good to hear!
@AsifZeeshan
@AsifZeeshan 2 ай бұрын
Simply! Awesome! Really easy and intuitive explanation.
@Radu
@Radu 2 ай бұрын
Thank you! :-)
@basiccoder2166
@basiccoder2166 10 ай бұрын
what a great visualization and edits props to the editor
@Radu
@Radu 10 ай бұрын
Thanks!
@User36282
@User36282 5 ай бұрын
This was really engaging, I loved it, thank you!
@Radu
@Radu 5 ай бұрын
Glad to hear :-) thanks for watching!
@EnglishRain
@EnglishRain 10 ай бұрын
Fantastic video, superb explanation & visualization
@Radu
@Radu 10 ай бұрын
Glad you liked it!
@user-sn4nb3ei8p
@user-sn4nb3ei8p 2 күн бұрын
admirations for the effort!
@Radu
@Radu 17 сағат бұрын
Thanks :-)
@MrSilversMathSheets
@MrSilversMathSheets 8 ай бұрын
This is done very well!
@Radu
@Radu 8 ай бұрын
Thank you :-) I hope it helps many people.
@javifontalva7752
@javifontalva7752 10 ай бұрын
Great! You always make my day! Thanks!!!
@Radu
@Radu 10 ай бұрын
Glad to hear that!
@plapbandit
@plapbandit 10 ай бұрын
I needed this, thanks Doc
@Radu
@Radu 10 ай бұрын
You're welcome :-)
@alexsouza22
@alexsouza22 9 ай бұрын
Great video! Thanks for all the effort to make it more digestive average humans
@Radu
@Radu 9 ай бұрын
Thanks for watching!
@freigeist2147
@freigeist2147 3 ай бұрын
Very good work on this Video, Thanks ! :)
@Radu
@Radu 3 ай бұрын
You're welcome. Thanks for watching :-)
@BrettCoffin
@BrettCoffin 10 ай бұрын
Brilliant ;) Thank you
@Radu
@Radu 10 ай бұрын
Glad you liked it!
@wgalloPT
@wgalloPT 7 ай бұрын
This is fantastic
@Radu
@Radu 7 ай бұрын
Thank you!
@lightyagami6823
@lightyagami6823 10 ай бұрын
If only my teachers were like you :)
@Radu
@Radu 10 ай бұрын
Well, teachers teach things... So if you learned something from this, I was your teacher :-)
@mirjalol49
@mirjalol49 10 ай бұрын
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 10 ай бұрын
Glad you liked it. Thanks for watching :-)
@tohirasadov689
@tohirasadov689 10 ай бұрын
Really wonderfull job!...............The best of the best my friend.
@Radu
@Radu 10 ай бұрын
Thank you!
@adrian__4678
@adrian__4678 3 ай бұрын
Esti tare!
@Radu
@Radu 3 ай бұрын
:-) Merci!
@Son_Goku2018
@Son_Goku2018 10 ай бұрын
that is the most entertaining intro so far
@Radu
@Radu 10 ай бұрын
Thanks!
@ninjacodertech
@ninjacodertech 10 ай бұрын
wow that was really interesting!
@Radu
@Radu 10 ай бұрын
Glad you think so! :-)
@JoaoLucas-tw2pt
@JoaoLucas-tw2pt 10 ай бұрын
you're being good with video editing
@Radu
@Radu 10 ай бұрын
Thank you!
@outsomnia
@outsomnia 10 ай бұрын
your videos are actually best and it's not even close lol
@Radu
@Radu 10 ай бұрын
Thanks for watching :-)
@sharmarahul384
@sharmarahul384 10 ай бұрын
Your animations are amazing! What do u use for it?❤❤
@Radu
@Radu 10 ай бұрын
Usually I just code them in JavaScript. For this one I used ThreeJs as well.
@sharmarahul384
@sharmarahul384 10 ай бұрын
@@Radu I thought I am the only one who wants to do things from scratch! 😅😅
@Radu
@Radu 7 ай бұрын
Many people want (need) to do things fast, so 'from scratch' is rare nowadays.
@neilclay5835
@neilclay5835 10 ай бұрын
very professional video
@Radu
@Radu 10 ай бұрын
Thank you!
@viktoreidrien7110
@viktoreidrien7110 10 ай бұрын
so basically any feature added to distinguish shapes from the drawings is a new dimension right?
@Radu
@Radu 10 ай бұрын
Exactly!
@viktoreidrien7110
@viktoreidrien7110 10 ай бұрын
@@Radu nice!! Thank you my friend! Looooove your content, keep it up please!!!
@Radu
@Radu 10 ай бұрын
​@@viktoreidrien7110 I'll try ;-)
@AZHARakaGoat
@AZHARakaGoat 10 ай бұрын
🥳 I have a q How to make something like gpt with the same things like we did it in recognition
@Radu
@Radu 10 ай бұрын
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 8 ай бұрын
Wow! Very cool and informative question and answer.
@Radu
@Radu 8 ай бұрын
@@unknown-bx8myThank you :-)
@gaming_zen_99
@gaming_zen_99 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
@@Radu Thanks bro! Highly appreciated.
@ChandrashekarCN
@ChandrashekarCN 2 ай бұрын
💖💖💖💖
@Radu
@Radu 2 ай бұрын
:-)
@jakobmusic9187
@jakobmusic9187 10 ай бұрын
well made
@Radu
@Radu 10 ай бұрын
Thank you!
@javifontalva7752
@javifontalva7752 10 ай бұрын
12:37 How can you type in both languages at the same time?😮
@Radu
@Radu 10 ай бұрын
Magic of editing :-D
@javifontalva7752
@javifontalva7752 10 ай бұрын
@@Radu Editing is a kind of magic. But the real magic is watching you coding. I am still a wannabe magician.
@klirmio21
@klirmio21 4 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
@@Radu 🤯🤯🤯 I will, Radu!
@omkarmudras756
@omkarmudras756 8 ай бұрын
I think we begginers intermediates find this things fascinating. Just an fact no offence.
@Radu
@Radu 8 ай бұрын
Glad to hear :-) why would I be offended by that? :-D
@TJ-hs1qm
@TJ-hs1qm 6 ай бұрын
4:41 Khaby 🥰😂
@Radu
@Radu 6 ай бұрын
:-))
Machine Learning Course - Lesson 12: Elongation Feature
23:54
Radu Mariescu-Istodor
Рет қаралды 1,7 М.
SMART GADGET FOR COOL PARENTS ☔️
00:30
123 GO! HOUSE
Рет қаралды 21 МЛН
The Invisible Universe that Surrounds Us with Dr. Dave Pooley
36:09
Event Horizon
Рет қаралды 4,5 М.
Distance from Point to Segment Explained using JavaScript
25:11
Radu Mariescu-Istodor
Рет қаралды 4,3 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 121 М.
Every Distance in Data Science (Almost 100K Subs!)
21:25
ritvikmath
Рет қаралды 10 М.
The Fascinating Math behind Piston Extenders #SoME3
20:08
mattbatwings
Рет қаралды 542 М.
Can you guess a shape from its shadows?
9:01
Ben Gobler
Рет қаралды 438 М.
Learn 2D Vectors with JavaScript
43:20
Radu Mariescu-Istodor
Рет қаралды 9 М.
Pythagorean Theorem: Proof, Applications and JavaScript Code
8:42
Radu Mariescu-Istodor
Рет қаралды 6 М.
Why are periodic systems so unpredictable? #some3
19:30
Concave Cuboid
Рет қаралды 14 М.
SMART GADGET FOR COOL PARENTS ☔️
00:30
123 GO! HOUSE
Рет қаралды 21 МЛН