Source Code
Code never been perfect. Doesn’t matter the code already perfected, or established, the’re always room for improvement…endlessly. Codes being made today can be made better tomorrow. With this philosophy in mind, I would humbly seek comments and suggestions from you folks to make the codes I share in this page for better improvement. Some of the codes I share here made by me while some or part of it comes from awesome individual programmers or programmers websites everywhere that are so generous to make their codes sharable to everyone.
Codes are not to be condemned neither judged. Codes are meant to be improved. I believe this is the genuine aspiration of these coders to willing to make their codes available to everyone. I just could not credit each names over here but whoever they are, I am so thankful for your generous sharing. My code no more than their codes that I made being better.
Here, you will find codes that I share. Please drop me comments at the bottom of this page to improve these codes. Or simply email me at: yusnaidi.kl@utm.my. That’s my only intention sharing this code..TO IMPROVE!. I love to LEARN together, and SHARE together.
k Nearest Neighbor (kNN) Algorithm in C++. This code demonstrates the Machine Learning’s Supervised Learning classification algorithms. The distance measurement using the Distance Formula: d ⁽P,Q⁾ = √ ⁽x₂ – x₁⁾² + ⁽y₂ – y₁⁾². However, other distance formula could be tested as well to see how good the algorithm perform the classification, such as the popular Euclidean Distance. The code can be compiled and executed using a GCC C++ compiler with command: $g++ KNNalgo.cpp $./a.exe |
Let's Start Something new
SAY HELLO!
"Two are Better Than One". I believe Bigger Mind Sparks Bigger Idea. Let's be a Team, because we are already a Family. Let's talk research. Let's share research. I would loved to learn new things, explore new possibilities, collaborate new research, improve knowledge skills, and learn from YOU!
Let's Be a Team
Knowing worth sharing.
Yusnaidi, UTM
From The Blog
How to install TinyOS 2.1.2 in Mac OSX El Capitan
How to install TinyOS-2.1.2 on Mac OSX EI CapitanI got this works for me! There are many settings to get the TinyOS 2.1.2 up and running in the Mac machine. And the one I had here I had manage it done successfully on my Mac OSX El Capitan machine. Possibly, we can get...
How to install TinyOS 2.1.1 on Ubuntu 14.0.4 32 bit
How to install TinyOS-2.1.1 on Ubuntu 14.0.4 LTS 32-bitEven TinyOS has been updated to version 3 but in terms of simulation, I found few limitations hindered one to simulate particularly on micaz platform. I have been searching all over the web and other references...
How to Install TinyOS-2.1.2 on Ubuntu 14.04.5-LTS 64-Bit using Virtualbox VM
How to install TinyOS-2.1.2 on Ubuntu 14.04.5 LTS 64-bit VirtualBox VMThis guides let one to install TinyOS version 2.1.2 (from latest tree) on Ubuntu by using VirtualBox virtualization. Apart from enabling to compile TinyOS codes (for example at the very simple...
How to Install TinyOS-2.1.1 on VM Ubuntu
How to install TinyOS-2.1.1 on Ubuntu 14.04.5 LTS 32-bit VirtualBox VMThe recent TinyOS 3 version has limitation on supporting simulation. Therefore, to leverage the use of TOSSIM, the built-in TinyOS simulator, researchers has to rely on the backdated version of the...
Install TinyOS-2.1.1: The Easiest Way
Install TinyOS-2.1.1: The Easiest WayEither you are using Windows, or Mac, you can install and straight away start to use Tinyos-2.1.1 on Ubuntu 14.04.5 LTS-32-bit, the EASIEST way! Simply download the ova file below and import it in your VirtualBox VM:...
Experienced Share: Installing CTP-Castalia on OMNeT++
Experienced Share: Install CTP-Castalia on OMNeT++I have recently researched on tree routing protocol in WSN. I had analysed the CTP routing protocol under TinyOS's nesC programming, however, due to some limitations the built-in TOSSIM simulator has to offer on energy...