Python / Miscellaneous I have looked far and wide for code for fast sorting of n dimensional arrays by the first element, for example if I had the array: ray = [[1,2,3,7,5][10,11,12,13,14]] I would want it to come out as ray = [[1,2,3,5,7][10,11,12,14,13]] There are several ways to do this. One is zipped = zip(ray) zipped.sort() ray = zip(zipped) but this is extremely slow. Numpy has.. Python / Miscellaneous This is a little code for making a list that can have only items from a list of types Python / Miscellaneous Code for fetching Anagrams out of any given file that contains words seperated by new lines. Python / Miscellaneous This recipe will let you embed GIF images inside of your source code for use in Tkinter buttons, labels, etc. It's really handy for making toolbars, etc. without worrying about having the right icon files installed. The.. Python / Miscellaneous Boilerplate code for a Python Unix daemon. Python / Miscellaneous Function to generate soundex code for any string (usually a name). Conforms to Knuth's algorithm and the common Perl implementation. C/C++ / Development Tools Gstat is an open source (GPL) computer code for multivariable geostatistical modelling, prediction and simulation. Gstat can calculate sample variograms, fit valid models, show variograms, calculate (pseudo) cross variograms, fit valid.. C/C++ / Multimedia Micro Mp3 Player is a simple code for a Mp3 Player utility. Tools / Build Tools Simple and easy-read code for a denoising method. JavaScript / Graph and Chart Scripts This generator provides a mechanism for the development and modification of the definition code for simple line charts. These charts consists of sets of joined cardinal points on a grid mounted in a panel. The chart may include text and.. Tools / Build Tools You can enter the probability of occurance of a group of symbols for the program and you will get the Fano code for each symbol. Run for it mac os. This is my first time to attach files to this category and hope that it will be useful for all. Tools / Build Tools Matlab code for the algorithm published in V. G. Reju, S. N. Koh and I. Y. Soon, Convolution Using Discrete Sine and Cosine Transforms, IEEE Signal Processing Letters, VOL. 14, NO. 7, JULY 2007, pp.445-448. Tools / Build Tools This is a small example code for 'Steepest Descent Algorithm'. It implements steepest descent Algorithm with optimum step size computation at each step. The code uses a 2x2 correlation matrix and solves the Normal equation for Weiner.. Tools / Build Tools bpnn code for pattern recognisation Optimize Truss by FSD and SLP 1.0 - Nguyen Quoc Duan This is a Matlab code for optimizing a plane truss by two methods : Fully Stress Design and Sequential Linear Programming. In SLD, we deal with the Euler buckling condition and some other constraints. Tools / Development Tools MATLAB code for beginners that performs Homomorphic filtering, Using Butterworth High Pass Filter for performing filtering. Copy the files in your work space Type 'ho_filter' to see the results Colonial Competitive Algorithm (CCA) 1.0 - Esmaeil Atashpaz Gargari These files are the MATLAB code for 'Imperialist Competitive Algorithm (ICA)' which in some papers is referred by 'Colonial Competitive Algorithm CCA'. Evolutionary optimization methods, inspired from natural.. Tools / Development Tools I had written this code for my mechatronics course project: Color Following Robot/Image Processing Robot. It follows object of any particular color (red in this case). 1) The robot (RC car) has a webcam mounted on top of it which captures.. Tools / Development Tools Simple Matlab Code for Neural Network Hebb Learning Rule. It is good for NN beginners students. It can be applied for simple tasks e.g. Logic 'and', 'or', 'not' and simple images classification. |