Fuzzy Logic Example #2

Fuzzy Logic Example #2 Introduction Few months ago I came across a paper titled, “Animated Fuzzy Logic” by G. Meehan and M. Joy (pdf). The abstract of the paper is as follows: In this paper we aim to give an introduction to fuzzy logic using the language Haskell to implement our solutions. We shall see how the high-level, declarative nature of a functional language allows us to implement easily and efficiently solutions to problems using fuzzy logic and, in particular, how the presence of functions as first-class values allows us to model the key concept of the fuzzy subset in a natural way....

August 4, 2012

Working With Vim and Ipython

Working with Vim and IPython Note: the text below is not for the faint-hearted. Setting up Vim to communicate with IPython is currently not very straightforward. The situation will improve soon. When I write Python code I tend to use IPython quite a bit to test and experiment. Currently this means quite a bit of reloading and writing test code in the IPython shell. I’ve always been a little jealous of the Emacs folks for being able to communicate with the Python shell with ease....

August 1, 2010

Animated Bar Graphs with Matplotlib and PyQt4

The new Matplotlib book shows how to animate line drawing. What I really needed was bar graphs. I didn’t see an example of animating bar graphs in the book (probably because it is follows naturally from the line animation example). The bar graph documentation for matplotib shows how to create a set of bar graphs. The code for animated bars is below. import sys from PyQt4 import QtGui from matplotlib.figure import Figure from matplotlib....

December 1, 2009