Respect
A flexible implementation of PSO algorithm with time-varying parameters. Algorithm is suitable for solving continuous optimization problems. Special care has been taken to enable flexibility of the algorthm with respect to its parameters and to initial population selection. Detailed logging of...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Particle Swarm Optimization (PSO) algorithm Download |
ICP fit points in data to the points in model. Fit with respect to minimize the sum of square errors with the closest model points and data points. Ordinary usage: [R, T] = icp(model,data) INPUT: model - matrix with model points, data - matrix with data points, OUTPUT: R - rotation matrix and T...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Iterative Closest Point Method Download |
To find channel capacity one must maximize the mutual information with respect to the discrete set of probabilities of the source symbols 'c' , and for a given transition probability matrix.An efficient algorithm to find channel capacity Cc was derived in 1972 by Blahut and independently...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Channel capacity using Arimoto-Blahut Algorithm Download |
ICP - Iterative Closest Point algorithm, c++ implementation. Handles only points in R^3. Makes use of a kd-tree for closest-point search. ICP finds the transformation of points in data to fit points in model. Fit with respect to minimize a weighted sum of squares for distances between the data...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (43): Iterative Closest Point Method, C++ Download |
The Central Limit Theorem (CLT) states that the sample average of N i.i.d. random variables approaches the normaldistribution.This script displays the probability density function of the sample average of N i.i.d variables with respect to N. The variables can be distributed according to a chi-2,...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Illustration of the Central Limit Theorem Download |
Utility function that makes it easier to work with variable number of input arguments. GETVARARGIN allows:*An optional logical check on the inputs (ie, check input type, range etc), issuing an error on the calling function if condition are not met.*An easy way to assign default values*Input...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): getvarargin Download |
Miniproject.m by Joe Conti is a very useful project manager that allows saving of workspace variables and figures together. It also saves the path, as explicit directories, in the original version. This leads to a problem if miniprojects are loaded in a different version of Matlab (e.g. after an...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Miniproject manager -- upgrade compatibility fix Download |
call: function to calculate BS call pricecall_vega: BS call vega (i.e. partial derivative of call with respect to vol)Phi: normal cdfPhiPrime: normal pdfimpvol: finds vol given a call pricedemo: a script demonstrating the impvol functiond1 and d2 are auxiliary functionsNOTE: the impvol function...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Black-Scholes Call and Implied Vol functions Download |
mergesorted.m------------------If we have two individually sorted vectors "a" and "b" but they are not sorted with respect to each other and we want to merge them into vector "c" such that "c" is also a sorted vector. Then c=mergesorted(a,b) can be used.This function most likely make difference...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Merge two sorted vectors into a sorted vector Download |
INPUT:x: vector of numeric values, x should already be sorted in ascending order (e.g. 2,7,20,...120)sval: numeric value to be search in x OUTPUT:index: index of sval with respect to x. If sval is not found in x then index is empty.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Binary Search for numeric vector Download |
This function generate random variables distributed according to a truncated normal distribution (or, by a translation, to a normal distribution with positive support). This kind of problem is especially interesting for generating variables with MCMC methods.We use a mixed accept-reject...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Normally and positive distributed pseudorandom numbers Download |
Statistic fundamentals of he Correspondence Analysis (CA) is presented in the CORRAN m-file you can find in this FEX author''s page. CA can be extended, a this m-file makes, to more than two categorical variables, called Multiple Correspondence Analysis (MCA).Karl Pearson (1913) developed the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): Multiple Correspondence Analysis Based on the Indicator Matrix Download |
The function femTriangularMeshGenerator() generates triangular mesh for a rectangular shape structure for Finite Element analysis.The outputs are:coords = x and y coordinates of each element nodescT = nodal connectivitynNodes = Number of nodesThe inputs are:Lx = width of the rectangular...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Finite Element Triangular Mesh Generator Download |
Contains various functions for measuring or estimating geometric quantities from 2D or 3D images.Parameters available for 2D images are:* the area (number of pixels)* the perimeter (based on Crofton formula)* the(2D) Euler NumberParameters available for 3D images are:* the volume,* the surface...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 81.92 KB | Download (92): geometric measures in 2D/3D images Download |
PFQ Generalized Hypergeometric Function pFq [Y,TT,NTERMS] = PFQ(A,B,Z,D) returns the Generalized Hypergeometric Function pFq with numerator parameters A, denominator parameters B, evaluated at the values in Z, with respect to derivatives D. PFQ(A,B,Z) returns the values evaluated at Z Inputs: A...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Generalized Hypergeometric Function (vectorized) Download |
RELFILE(FILE,PATH) converts full filename FILE to a relative filename with respect to PATH.REL2FULLFILE(RELFILE,PATH) converts relative filename RELFILE to full filename using PATH as the base path.Examples:relfile('C:Program FilesMATLABR2009abinmatlab.exe','C:Program FilesMATLABR2009a')returns...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (38): Relative Filename Download |
The main advantages of the Hausdorff regression are that one should not specify the direction of the errors (vertical, horizontal, orthogonal ... with the ordinary least squares) and that it is less sensitive with respect to the square of the distance.This is the original idea. Any contribution...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Hausdorff regression Download |
This code has been wrote to solve nonlinear two point boundary value problem of order n by multiple shooting method.It needs the function "SENS_SYS" which calculate derivatives (sensitivities) of the solution with respect to parameters. This code is not prefect and i will try to develop it. If...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 30.72 KB | Download (45): Multiple shooting Download |
The function gets the 2nd derivatives of a vector with two finite boundariesThe function gets the 2nd derivatives of a vector with two finite boundaries.function V2ndDx = get_V2ndDx(V,delta_x,INDstart,INDend)Input:V = the input vector, 1D datadelta_x = delta xINDstart = first indexINDend = last...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Get the 2nd derivatives of a vector with two finite boundaries Download |
This function gets the 1st derivatives of a vector V with two boundariesInput:V = the input vector, 1D datadelta_x = delta xINDstart = first indexINDend = last indexOutput:VDx = 1st derivative of V with respect to x
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): A function to get the 1st derivatives of a vector with two finite boundaries Download |