Neighborhood Search


04 May 2019
Implementation import System.Random import System.IO.Unsafe import Control.Monad ( replicateM) The first thing that should be done is to write some helper-functions for generating pseudorandom numbers. To do that, I’ll start by defining seed for random generators and a function that will generate a finite length list of values in range, getRandomValuesInRange::Int->Int->Int->IO [Int]. For exercise purpose only, I’ll define second function that will return a finite length list of doubles, uniformly distributed on , getRandomValues::Int->[Double]. seed::Int...
Read more...

Input Capture Linux Char Driver - I part


19 Aug 2018
Introduction To the best of my knowledge, on Linux there is no way to configure a hardware timer in input capture mode although, since it can be used on embedded systems, this feature can be needed. For example, if one needs to measure the period of a signal on a development board running a Linux distro he has no other way than sampling the GPIOs in userspace with the cost of a resolution of milliseconds....
Read more...

Circuit Design and Simulation in Geda


29 Jul 2018
This post won’t be a tutorial on electronic circuits but will present a free method to desing and simulate electronic circuits on Linux using Geda and ngspice. To start, I will chose a simple diode clipping circuit which consist of the following elements: 2 1N4007 diodes 2 10K resistors The schematic is available in Img 1. Note that for this circuit is mandatory to have the .mod file for 1N4007 diode. Now, using the terminal...
Read more...

Subscribe