Illustration of Nearest Neighbor Interpolation in a Two-Dimensional Space
📅 April 20, 2024 | 👁️ Views: 80
\documentclass{standalone}
\standaloneconfig{margin=2mm}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[scale=1.00]
\def\radius{1}
\def\secondradius{1.4}
\def\angle{5}
\def\secondangle{110}
\coordinate (O) at (0,0);
\draw[dashed] (\angle:\secondradius) arc (\angle:\secondangle:\secondradius);
\draw[dashed] (\angle:\radius) arc (\angle:\secondangle:\radius);
\draw[-stealth,blue] (O) -- (65:\radius) node[midway, yshift=2pt, sloped, font=\fontsize{5}{5}\selectfont] {$\varepsilon$} ;
\draw[-stealth,blue] (33:\secondradius) -- (33:\radius) node[yshift=4pt,midway, sloped, font=\fontsize{5}{5}\selectfont] {$d\varepsilon$};
\fill[blue] (O) circle (1pt);
\node[below] at (O) {\scriptsize$x^2$};
\draw[-stealth] (75:1.7) node[above] {\scriptsize$k^{th}$\tiny neighbour} -- (57:1.2) coordinate (B);
\fill[red] ($(B)+(0.01,-0.05)$) circle (1pt);
\fill (0.75,1.5) circle (1pt);
\fill (1.25,1.75) circle (1pt);
\fill (1.7,0.75) circle (1pt);
\fill (0.7,0.2) circle (1pt);
\fill (0.5,-0.17) circle (1pt);
\fill (-0.5,-0.17) circle (1pt);
\fill (-0.5,0.7) circle (1pt);
\fill (-0.1,0.8) circle (1pt);
\fill (-0.4,2.2) circle (1pt);
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\standaloneconfig{margin=2mm}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[scale=1.00]
\def\radius{1}
\def\secondradius{1.4}
\def\angle{5}
\def\secondangle{110}
\coordinate (O) at (0,0);
\draw[dashed] (\angle:\secondradius) arc (\angle:\secondangle:\secondradius);
\draw[dashed] (\angle:\radius) arc (\angle:\secondangle:\radius);
\draw[-stealth,blue] (O) -- (65:\radius) node[midway, yshift=2pt, sloped, font=\fontsize{5}{5}\selectfont] {$\varepsilon$} ;
\draw[-stealth,blue] (33:\secondradius) -- (33:\radius) node[yshift=4pt,midway, sloped, font=\fontsize{5}{5}\selectfont] {$d\varepsilon$};
\fill[blue] (O) circle (1pt);
\node[below] at (O) {\scriptsize$x^2$};
\draw[-stealth] (75:1.7) node[above] {\scriptsize$k^{th}$\tiny neighbour} -- (57:1.2) coordinate (B);
\fill[red] ($(B)+(0.01,-0.05)$) circle (1pt);
\fill (0.75,1.5) circle (1pt);
\fill (1.25,1.75) circle (1pt);
\fill (1.7,0.75) circle (1pt);
\fill (0.7,0.2) circle (1pt);
\fill (0.5,-0.17) circle (1pt);
\fill (-0.5,-0.17) circle (1pt);
\fill (-0.5,0.7) circle (1pt);
\fill (-0.1,0.8) circle (1pt);
\fill (-0.4,2.2) circle (1pt);
\end{tikzpicture}
\end{document}
Related Courses, Exams, and Exercises
- Branches infinis Course
- Circuit RLC Course
- Comment tracer des solutions d'inégalités trigonométriques sur des intervalles Course
- diagramme d'algorithme Simplexe Course
- figure 1 Course
- La Cloche de Gauss Course
- Large numbers names Course
- Résoudre une inégalité trigonométriques avec tikz Course
- Scatter Plot with Data From csv File Course
- Triangle De Pascal avec Latex Course
- Venn Diagram Course
- Windows System Architecture Course
Course PDF:
📥 Download Illustration of Nearest Neighbor Interpolation in a Two-Dimensional Space (PDF)
if you find this content helpful, Please consider supporting me with a small donation
إن وجدت هذا المحتوى مفيدا، من فضلك إدعمني بمبلغ بسيط كتبرع
Buy me a coffee — إشتر لي قهوة
PayPal.me • عبر بايبالOr bank transfer • أو حوالة بنكية
Titulaire : RADOUAN MOSAID RIB : 230 090 6501953211022000 65 IBAN : MA64 2300 9065 0195 3211 0220 0065 BIC / SWIFT : CIHMMAMC
Most Viewed Courses
Tous les sujets des suites numériques des examens nationaux 2008 - 2022
Views: 1.63K
Exam • Maths • 2 Bac Science
DM 1 - Arithmetiques, Calcul vectoriel et projection
Views: 1.56K
Exercise • Maths • Tronc Commun Sciences
MATHEMATIQUES Examens nationaux 2003-2021 2 Bac.Sciences expérimentales
Views: 1.52K
Exam • Maths • 2 Bac Science
Control 01 S01 En arithmétiques et Calcul vectoriel - A 2025-2026
Views: 1.49K
Exam • Maths • Tronc Commun Sciences
Recent Articles
Boosting LaTeX Editing with Custom Vim Mappings
23 Nov 2025
Quran Search: A Feature rich and modern design
13 Feb 2025