Tag Archives: example

The Coronavirus Curve – A simple simulator

Here is an implementation for a simple ODE simulation of the COVID-19 curve. The simulator runs based on a set of first order ordinary differential equations (ODEs). These equations are dependent and measure three values including the change in the … Continue reading

Posted in Linux, Machine Learning, programming, Python, Software, Statistics, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

Star / Asterisks Operator ( * ) in Python – 1

1. Unpacking iterables into a list/tuple In addition to serving as the symbol for multiplication, the star operator (*) in Python has several other applications. The first application is unpacking iterables into a list/tuple Example: Adding (appending) elements to an … Continue reading

Posted in Linux, Machine Learning, Python, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

3D Rotations using Rodrigues Rotation Formula

The problem we are addressing here is the rotation of a general 3D vector about a given axis of rotation denoted by by radians. The Rodrigues Rotation Formula is as follows: Example: for a sanity check we can consider that … Continue reading

Posted in Machine Learning, Robotics | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Quaternions – Use them for Rotation and Transformation

This is the second tutorial on Quaternions. In the previous post, I explained how to use basics of quaternions from the pyquaternion python library. Check the previous post here. In this post, I will show you how to perform spatial … Continue reading

Posted in Linux, Machine Learning, programming, Python, Robotics, ROS, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Quaternions – How to generate and operate them in Python?

Python Package There are several python libraries (modules) that you can install. Here, I am going to use pyquaternion Installation This package can be installed as follows pip install pyquaternion Usage After installing the package, use it as follows:  Forming … Continue reading

Posted in Linux, Machine Learning, programming, Python, Robotics, ROS, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Minimal Linux Installation – A video tutorial

In this video, I demonstrate how to download and install Minimal Linux in virtual box. Minimal Linux Live is a set of Linux shell scripts which automatically build minimalistic Live Linux OS with basic network support via DHCP. The generated … Continue reading

Posted in Linux, Software, Ubuntu, Uncategorized | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

Importance Sampling – A Tutorial

Problem: Compute an expectation over a probability density function , given only samples generated from a different probability density function . We call and the target distribution and proposal distribution respectively. Solution: Draw samples from Calculate the probability of each … Continue reading

Posted in Machine Learning, MATLAB, Optimization, Reinforcement Learning, Robotics, Software, Statistics | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 1 Comment

Generating a trajectory of quaternions between two given quaternions

First, check my previous post on slerp to learn how to interpolate between two quaternions. In this post, we make a function that uses the previously developed interpolation to generate points (quaternions) between and initial and a final quaternion namely, … Continue reading

Posted in control, Linux, Machine Learning, MATLAB, programming, Robotics, ROS, Software, Ubuntu, Uncategorized | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Slerp: Spherical linear interpolation in quaternion space

in my previous post, I explained the simple Lerp method for calculating linear interpolation in the quaternion space. I also mentioned that while normalizing the output could help to get an optimized result, the velocity curve is not constant. To … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, ROS, Software, Ubuntu, Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Compress files in MATLAB without other file compression software – Method 2, GNU ZIP-UNZIP

In previous post, I showed how you can make zip files in MATLAB and also how to unzip them. The previous function zip used the standard ZIP compression. In this post, we take a look at GNU ZIP and GNU … Continue reading

Posted in Linux, MATLAB, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , | Leave a comment