ORTHLLS2D returns the Orthogonal Linear Least Squares estimate for parameters of line a x + b y + c = 0
function f = OrthLLS2D(x, y)
Inputs x and y must be real vectors of equal size. Output f is the real vector [a b c] where a, b and c are the estimated parameters of the linear equation.
Since a more general function called LINORTFITN has already been submitted to File Exchange (ID number: 16800) in...
Vectorized code for simulation of renewal, stationary renewal, renewal reward, on-off processes. Interrenewal distribution can be given as a function handle to an external random number generator. Includes addition and integration of such...
The following code shows why you would want to use a heap instead of a list and the basics of using heapq in python with some additions for python 2.4( I've cleaned this up from earlier to make it hopefully clearer.)
phpMyEdit generates PHP code for displaying/editing MySQL tables in HTML. All you need to do is to write a simple calling program (a utility to do this is included).
It includes a huge set of table manipulation functions (record...
Solves for any of the variables in the Reynolds Number equation. The variables Reynolds Number, density, velocity, length or viscosity.
The note explains in detail how to apply the Matlab 2-dimensional FFT for filtering of two-dimensional signals, e.g. images. It is shown how to connect the output from fft2 to the actual Fourier transform of the signal, and in particular how...
I use MATLAB for most of my day-in-day-out work. I teach statistics using R. For the most part, I am happy using MATLAB (if only because its what I know best), but two features of R that I really miss in MATLAB are:
1) Dataframes - a...
Matlab code for calculation of 2d Gaussian Q function.
General description This m-file provide a numerical computation of two-dimensional Gaussian Q-function, that is ...
Java Assertions to Code (JAC) is the tool which is used to generate the code from contracts of the method in Java. COFOJA is used to write contracts and JDT is used to create abstract syntax tree for parsing and manipulation of Java file.
It's a Cat and Dog game,we develop the Inner AI strategy for the Dog and we also code the strategy of the cat in order to simulate the user. Furthermore we use Artificial Neural Network to build the experiment
This function takes in any base-10 integer and returns the string representation of that number in its specified base-n form. The code was inspired from http://code.activestate.com/recipes/65212-convert-from-decimal-to-any-base-number/ ,...
Very rarely it is necessary to find the multiplicative inverse of a number in the ring of integers modulo p. Thie recipe handles those rare cases. That is, given x, an integer, and p the modulus, we seek a integer x^-1 such that x * x^-1 = 1 mod...
Generating system of code for audit of database Firebird/Interbase. Developed in FreePascal.
The orignal script is from dynamicdrive The main modification I made to this script was the addition of two buttons that controlled the flow of the horizontal scroll content. This script is free, if you like it, just send me an email to say hi!
This is a MATLAB program for simulation of polymer blend self-assembly with nano-scaled features. The Cahn-Hilliard equation is implemented to calculate the free energy profile of the polymer blends during spinodal decomposition on a...
SharedObjects is a middleware for development of distributed applications in a simple, painless way. It doesn't perform remote method calls, but replicates the object in the client machine. Supports distributed transactions and dynamic class...
Machi code generator is automation tool that can generate PHP code for displaying/editing MySQL tables in HTML.
SATGLOBE - This file renders a fully manipulatable satellite view of earth at a resolution of two pixels per degree, with added international political boundaries and gridlines. The imagery was obtained from NASA, and the globe was rendered using...
Pretty fast code for zeros of Bessel functions of 1st and 2nd kind and for zeros of the derivatives. The Newton-Raphson method is used with the initial guess predicted from previously computed zeros.
This plugin is designed to collect users predictions for each of the matches in the 2010 FIFA World Cup.
Users predict the score for each match in the group and knockout stages and are awarded points based on the accuracy of their... |