Method Of Least Squares
zpkfit uses the nonlinear least-squares fitter (lsqnonlin) to fit an analytic model of any (fixed) number of poles and zeroes to numerical (presumably measured) frequency response data. It takes as arguments a frequency vector, a frequency response vector, and vectors of the initial guesses of...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): zpkfit Download |
The program computes the tie lines, the operating and mixing points and the number of equilibrium stages using the Hunter and Nash graphical method of a liquid-liquid extraction problem. One feed of acetic acid (35 wt %) in water which flow rate = 1000 kg/hr is extracted using a solvent...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (40): Hunter and Nash Graphical Equilibrium Stage Method Download |
Both functions caculate the Lomb normalized periodogram (aka Lomb-Scargle, Gauss-Vanicek or Least-Squares spectrum) of a vector x with coordinates in t, which is essentially a generalization of the DFT for unevenly sampled data.The codes are transcriptions from Fortran of the subroutines found in...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Lomb normalized periodogram Download |
variogramfit performs a least squares fit of various theoretical variograms to an experimental, isotropic variogram. The user can choose between various bounded (e.g. spherical) and unbounded (e.g. exponential) models. A nugget variance can be modelled as well, but higher nested models are not...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (51): variogramfit Download |
This is a wrapper function to solve optimization problems (using FMINCON) of the form:min w.r.t. X of CostFunc(X) = beta*(W_ls*F(X)) + (1 - beta)*(max(W_mm*F(X)))subject to: A*X
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): weighted least-squares + weighted min-max optimization Download |
The zip includes:(1) lsqAffineSpace: a 'low level' routine that takes a set of m-dimensional real sample data and returns the optimal-fit k-dimensional affine subspace, with some options for discarding outliers.(2) lsqPlane and lsqLine: lsqAffineSpace wrappers, that compute optimal line and...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): Least-Squares optimal affine subspace Download |
This function implements a method of using genetic algorithms to optimise the form of a polynomial, i.e. reducing the number of terms required in comparison to a least-squares fit using all possible terms, as described in the following paper:Clegg, J. et al, "The use of a genetic algorithm to...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (45): gapolyfitn Download |
A circle of radius 0.5 is inscribed inside a square with side length 1.Script picks N points at random inside the square. It then checks to see if the point is inside the circle and then generates a figure in which the points ''in'' and ''out'' are plotted in different colors. Say we have M...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Montecarlo method of pi calculation Download |
Solves the linear least squares problem with nonnegative variables using the newton's algorithm in:Portugal, Judice and Vicente, A comparison of block pivoting and interior point algorithms for linear least squares problems with nonnegative variables, Mathematics of Computation, 63(1994), pp....
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): newton's algorithm for nnls Download |
Solves the linear least squares problem with nonnegative variables using the predictor-corrector algorithm in:Portugal, Judice and Vicente, A comparison of block pivoting and interior point algorithms for linear least squares problems with nonnegative variables, Mathematics of Computation,...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): predictor-corrector algorithm Download |
Among the considerations in the use of analysis of regression, outliers or bad values can seriously disturb the least-squares fit. They falls far from the line implied by the rest of the data. If these points are really outliers, then the estimate of the intercept may be incorrect and the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): regout Download |
This particular Direct Calculation Method is referenced from: J Hu "Radio Frequency Front-End Measurement and Modeling," Ph.D. dissertation, North Carolina State University, Raleigh NC, 2011.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 215.04 KB | Download (45): Direct Calculation Method of Symbolic Volterra Circuit Analysis Download |
FDTD(Finite Difference Time Domain) is the most easiest method of EM Solver.In this code i just demonstrate that how can we launch multiple sources in a single time,and how they can combine effect with in single time domain. The Sources are taken as 20GHz Sine wave and number of signal are...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Multiple Source 2D wave propagation using FDTD method Download |
Some of the logic from this program was provided from PDBRead.m by Sachin Nikumbh. The version I made is a trimmed down version of it that only outputs the data from one atom type (protein by default), and formats it as convenient cell variables. For smaller PDB files, the time difference between...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): a fast method of reading data from PDB files Download |
inilib is a C++ library which provides a method of saving the "state" of a program. inilib library provides a means of storing a number of arbitrary settings in memory with an easy access interface, as well providing means for saving the information to and loading it from disk. Data is stored...
Platforms: *nix
License: Freeware | Size: 481.28 KB | Download (92): inilib Download |
DBIx::Timeout is a Perl module that provides a safe method of timing out DBI requests. The method described in the DBI documentation uses unsafe signals, which may cause memory corruption. DBIx::Timeout instead uses a separate timeout process. The problem with using POSIX sigaction() is that...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (88): DBIx::Timeout Download |
Combining the high speed analysis provided by the open source combustion analysis software of catool with the industry leading data aquisition hardware of National Instruments, catoolRT provides a highly powerful yet low cost method of using your existing combustion analysis and data acquisition...
Platforms: Windows
License: Freeware | Download (48): Catool Download |
Whenever a superclass implements a __init__ method to initialize its attributes, subclasses derived from it have to invoke the __init__ method of the superclass. This script is a different mechanism of initializing the attributes of a superclass with default values, achieved by overriding the...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Overriding __new__ for attribute initialization Download |
Function: Savitzky-Golay Smoothing and Differentiation Filter The Savitzky-Golay smoothing/differentiation filter (i.e., the polynomial smoothing/differentiation filter, or the least-squares smoothing/differentiation filters) optimally fit a set of data points to polynomials of different degrees....
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Savitzky-Golay Smoothing and Differentiation Filter Download |
This M-File calculates the autocorrelation of a random process by the method of Rader (mentioned e. g. in Karl Kammeyer, "DIGITALE SIGNALVERARBEITUNG : Filterung und Spektralanalyse"):Y=akfrader(X,[M])X: stationary random process (Vektor)Y: autocorrelation (Vector of length M)M: number for...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): Rader Autocorrelation Download |