This code implements Bresenham Line Algorithm with slight modification of error term in respect of computation efficiency that it does not require any division process. Hence it is more efficient. Also it has been generalized to draw lines of any slope. Point input order is thus insignificant. I hope this code would be helpful.
This code implements the basic back propagation of error learning algorithm. the network has tanh hidden neurons and a linear output neuron, and applied for predicting y=sin(2pix1)*sin(2pix2). We didn't use any feature of neural network toolbox.
This code snippet is the implementation of Dijkstra's algorithm.
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...
SpeedyGA is a vectorized implementation of a genetic algorithm in the Matlab programming language. Without bells and whistles, it faithfully implements the specification for a Simple GA given on pgs 10, 11 of M. Mitchell's GA book. See comments in...
These files are the MATLAB code for "Cuckoo Optimization Algorithm (COA)". Cuckoo Optimization Algorithm (COA) is inspired by the life of a bird family, called Cuckoo. Special lifestyle of these birds and their characteristics in...
unEvo is an Eclipse plug-in that provides support for the experimentation and research process on Evolutionary Algorithms, intended so that the user can implement an evolutionary algorithm without lost time in the code of the algorithm.
This is a pure Python implementation of the rsync algorithm. On my desktop (3.0GHz dual core, 7200RPM), best case throughput for target file hash generation and delta generation is around 2.9MB/s. Absolute worst case scenario (no blocks in common)...
This is an application of the Greedy Algorithm and the Local Search for finding a solution for the SC Distribution Network problem. We dealt with one level SC composed of a set of factories and a set of Sales Points, each sales point has a...
Implementation of Valiaho's algorithm to determine the handicap based on paper
H. Valiaho. Determining the handicap of a sufficient matrix. Linear Algebra and Its Applications, 253:279-298, 1997.
a kind of usefull clustering algorithm that is better than kmeans and ward hierarchical clustering algorithms in some data sets
This project aims at developing an application that converts the given algorithm into a code with main emphasis on the parallel algorithms and developing multi-threaded and efficient code for the given algorithm.
Source code of Inno Setup - free installer for Windows programs. First introduced in 1997, Inno Setup today rivals and even surpasses many commercial installers in feature set and stability.
The recipe illustrates a Python implementation of the bitsort algorithm. This algorithm is illustrated in the book "Programming Pearls" by Jon Bentley. The bitsort algorithm provides a very efficient way to sort large numbers in disk files.
It calculate the arithmetic code of a string of char, subject to an alphabet "A" and a probability distribution "P". http://en.wikipedia.org/wiki/Arithmetic_coding
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...
This program is open source code of fast Fourier transform in matlab. Where y is the input argument and p is the normalized size of the input. Let y = [1 2 3 4 ]; x= length(y); m= log2(x); p= ceil(m); To call the...
This script demonstrates the influence of range reduction algorithm at low bitrate encoding using JPEG encode. The range [0-255] of pixel values is mapped to [64-235] in this script using a look-up-table. Subsequently, the file is compressed to...
In this submission we present the code of the Replacement Method (RM) [1-4] and Enhanced Replacement Method (ERM)[5], that were proposed some time ago by our group. Both methods produce linear regression QSPR-QSAR models that are quite close the...
I was trying out modifications of the LMS algorithm so that it will converge faster and the mean square error will also be smaller. Getting to one of the drawbacks of LMS, that it has only one controllable parameter "mu", the selection... |