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

Комментарии • 104

  • @Radu
    @Radu  Год назад +20

    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 Год назад +3

      Awesome video as usual😎

    • @Radu
      @Radu  11 месяцев назад +2

      ​@@unknown-bx8my Thanks!

  • @___d3p1
    @___d3p1 Год назад +22

    This video deserves a prize! Great visualization and explanation! It opens your mind!

    • @Radu
      @Radu  Год назад +1

      Glad you liked it! :-)

  • @Frankslaboratory
    @Frankslaboratory Год назад +11

    Your visuals are getting better and better.

  • @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  Год назад +1

      Wow, thanks! :-) [btw, looks like your drawing made it here as well]

    • @pesterenan
      @pesterenan Год назад +1

      @Radu Yeah! That is so cool, hahaha. You really know how to integrate your viewers on your videos :D

    • @Radu
      @Radu  10 месяцев назад +1

      I try :-)

  • @RipMoney911
    @RipMoney911 Месяц назад +1

    This was so clear and concise, it's actually crazy. You explain things so well! This was unimaginably useful, many thanks!

    • @Radu
      @Radu  25 дней назад +1

      Thank you. Makes me happy to hear I was of help! :-)

  • @nathanoy_
    @nathanoy_ 11 месяцев назад +5

    This video is incredible! Glad i found your channel.
    This made me instantly subscribe to your channel.

    • @Radu
      @Radu  11 месяцев назад +1

      Glad to hear you liked the video and thanks for coming to the channel :-)

  • @zk-mc
    @zk-mc 4 месяца назад +1

    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  4 месяца назад

      I'm happy you got another perspective :-)

  • @csguru8211
    @csguru8211 4 месяца назад +1

    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  4 месяца назад +1

      Glad I could help :-) Thanks for watching!

  • @PrantikNoor
    @PrantikNoor Год назад +6

    This is the first time, I felt the need of higher dimension. 😙

    • @Radu
      @Radu  Год назад

      :-) Good to hear!

  • @jholloway77
    @jholloway77 4 месяца назад +1

    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  4 месяца назад +1

      It's great you found your own application to use it in :-) Nice work!

  • @basiccoder2166
    @basiccoder2166 Год назад +4

    what a great visualization and edits
    props to the editor

    • @Radu
      @Radu  Год назад

      Thanks!

  • @zlackbiro
    @zlackbiro 2 месяца назад +1

    And the most bizarre thing is everything he do is in JavaScript. Hahahah. So simple and clean. I love JavaScript.

    • @Radu
      @Radu  2 месяца назад

      :-)

  • @EnglishRain
    @EnglishRain Год назад +5

    Fantastic video, superb explanation & visualization

    • @Radu
      @Radu  Год назад +2

      Glad you liked it!

  • @AsifZeeshan
    @AsifZeeshan 5 месяцев назад

    Simply! Awesome! Really easy and intuitive explanation.

    • @Radu
      @Radu  5 месяцев назад

      Thank you! :-)

  • @user23724
    @user23724 8 месяцев назад +2

    This was really engaging, I loved it, thank you!

    • @Radu
      @Radu  8 месяцев назад

      Glad to hear :-) thanks for watching!

  • @javifontalva7752
    @javifontalva7752 Год назад +2

    Great! You always make my day! Thanks!!!

    • @Radu
      @Radu  Год назад

      Glad to hear that!

  • @plapbandit
    @plapbandit Год назад +2

    I needed this, thanks Doc

    • @Radu
      @Radu  Год назад

      You're welcome :-)

  • @MrSilversMathSheets
    @MrSilversMathSheets 11 месяцев назад +1

    This is done very well!

    • @Radu
      @Radu  11 месяцев назад

      Thank you :-) I hope it helps many people.

  • @freigeist2147
    @freigeist2147 6 месяцев назад +1

    Very good work on this Video, Thanks ! :)

    • @Radu
      @Radu  6 месяцев назад

      You're welcome. Thanks for watching :-)

  • @alexsouza22
    @alexsouza22 Год назад +1

    Great video! Thanks for all the effort to make it more digestive average humans

    • @Radu
      @Radu  Год назад

      Thanks for watching!

  • @user-sn4nb3ei8p
    @user-sn4nb3ei8p 3 месяца назад +1

    admirations for the effort!

    • @Radu
      @Radu  3 месяца назад

      Thanks :-)

  • @BrettCoffin
    @BrettCoffin Год назад +1

    Brilliant ;)
    Thank you

    • @Radu
      @Radu  Год назад

      Glad you liked it!

  • @drtobbyas
    @drtobbyas 9 дней назад

    I love the visualization and animations. Do you mind sharing what tools you used in creating the visualization? Great video

    • @Radu
      @Radu  9 дней назад

      Hi, I actually coded all visualisations in JavaScript. I also used ThreeJS.

  • @mirjalol49
    @mirjalol49 Год назад +2

    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  Год назад

      Glad you liked it. Thanks for watching :-)

  • @tohirasadov689
    @tohirasadov689 Год назад +1

    Really wonderfull job!...............The best of the best my friend.

    • @Radu
      @Radu  Год назад

      Thank you!

  • @lightyagami6823
    @lightyagami6823 Год назад +2

    If only my teachers were like you :)

    • @Radu
      @Radu  Год назад +2

      Well, teachers teach things...
      So if you learned something from this, I was your teacher :-)

  • @wgalloPT
    @wgalloPT 11 месяцев назад +1

    This is fantastic

    • @Radu
      @Radu  10 месяцев назад

      Thank you!

  • @ninjacodertech
    @ninjacodertech Год назад +1

    wow that was really interesting!

    • @Radu
      @Radu  Год назад

      Glad you think so! :-)

  • @outsomnia
    @outsomnia Год назад +1

    your videos are actually best and it's not even close lol

    • @Radu
      @Radu  Год назад +1

      Thanks for watching :-)

  • @adrian__4678
    @adrian__4678 6 месяцев назад +1

    Esti tare!

    • @Radu
      @Radu  6 месяцев назад +1

      :-) Merci!

  • @neilclay5835
    @neilclay5835 Год назад +1

    very professional video

    • @Radu
      @Radu  Год назад

      Thank you!

  • @Son_Goku2018
    @Son_Goku2018 Год назад +1

    that is the most entertaining intro so far

    • @Radu
      @Radu  Год назад

      Thanks!

  • @JoaoLucas-tw2pt
    @JoaoLucas-tw2pt Год назад +1

    you're being good with video editing

    • @Radu
      @Radu  Год назад

      Thank you!

  • @sharmarahul384
    @sharmarahul384 Год назад +3

    Your animations are amazing! What do u use for it?❤❤

    • @Radu
      @Radu  Год назад +3

      Usually I just code them in JavaScript. For this one I used ThreeJs as well.

    • @sharmarahul384
      @sharmarahul384 Год назад +1

      @@Radu I thought I am the only one who wants to do things from scratch! 😅😅

    • @Radu
      @Radu  10 месяцев назад +2

      Many people want (need) to do things fast, so 'from scratch' is rare nowadays.

  • @viktoreidrien7110
    @viktoreidrien7110 Год назад +2

    so basically any feature added to distinguish shapes from the drawings is a new dimension right?

    • @Radu
      @Radu  Год назад +2

      Exactly!

    • @viktoreidrien7110
      @viktoreidrien7110 Год назад +1

      @@Radu nice!! Thank you my friend! Looooove your content, keep it up please!!!

    • @Radu
      @Radu  Год назад +1

      ​@@viktoreidrien7110 I'll try ;-)

  • @AZHARakaGoat
    @AZHARakaGoat Год назад +3

    🥳
    I have a q
    How to make something like gpt with the same things like we did it in recognition

    • @Radu
      @Radu  Год назад +2

      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 11 месяцев назад +2

      Wow! Very cool and informative question and answer.

    • @Radu
      @Radu  11 месяцев назад +1

      @@unknown-bx8myThank you :-)

  • @jakobmusic9187
    @jakobmusic9187 Год назад +1

    well made

    • @Radu
      @Radu  Год назад

      Thank you!

  • @ChandrashekarCN
    @ChandrashekarCN 5 месяцев назад +1

    💖💖💖💖

    • @Radu
      @Radu  5 месяцев назад

      :-)

  • @javifontalva7752
    @javifontalva7752 Год назад +1

    12:37 How can you type in both languages at the same time?😮

    • @Radu
      @Radu  Год назад

      Magic of editing :-D

    • @javifontalva7752
      @javifontalva7752 Год назад +2

      @@Radu Editing is a kind of magic. But the real magic is watching you coding. I am still a wannabe magician.

  • @gaming_zen_99
    @gaming_zen_99 Год назад +1

    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  Год назад

      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 Год назад +1

      @@Radu Thanks bro! Highly appreciated.

  • @klirmio21
    @klirmio21 7 месяцев назад +1

    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  7 месяцев назад

      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).

    • @klirmio21
      @klirmio21 7 месяцев назад +1

      @@Radu 🤯🤯🤯 I will, Radu!

  • @quantumgaming9180
    @quantumgaming9180 Месяц назад +1

    Esti cumva absolvent de la universitate? Fiindca imi suna familiar numele tau

    • @Radu
      @Radu  25 дней назад

      Da, la mai multe :-) la care universitate te referi?

    • @quantumgaming9180
      @quantumgaming9180 25 дней назад

      @@Radu Universitatea Bucuresti, Poli, Ase? :)

    • @Radu
      @Radu  25 дней назад +1

      Nu, am fost la Vest, la Timisoara :-)

  • @TJ-hs1qm
    @TJ-hs1qm 9 месяцев назад +1

    4:41 Khaby 🥰😂

    • @Radu
      @Radu  9 месяцев назад

      :-))

  • @omkarmudras756
    @omkarmudras756 11 месяцев назад +2

    I think we begginers intermediates find this things fascinating. Just an fact no offence.

    • @Radu
      @Radu  11 месяцев назад +1

      Glad to hear :-) why would I be offended by that? :-D