image thumbnail

updated 2 months ago

Optimization Tools: Line Search Methods for function N-DIM by Ennio Condoleo

4 Line Search Methods: Powell, Newton, Conjugate Directions and Random Walk (powell, newton, conjugate directions)

armijo(alpha,x,d,f0,f1,gamma,delta)

backtr(alpha_guess,Xk,dk,F,gamma,delta,rhok)

CONJUGATE_DIRECTIONS_NDIM.m

image thumbnail

updated 4 months ago

Max and min keeping NaNs by David Young

The max and min functions ignore NaN values. These functions keep them like arithmetic functions do. (max, min, maximum)

maxNan(a, b, dim)

minNan(a, b, dim)

image thumbnail

updated 8 months ago

Bound Values of an array by Pramit Biswas

Check whether value of the array within specified range or not and change accordingly (array, minimum, maximum)

MinMaxCheck( minimum, maximum, A2comp )

image thumbnail

updated 10 months ago

1D Non-derivative Peak Finder by Tristan Ursell

Up-sample and filter noisy data to find peaks without using derivatives. (signal processing, interpolation, measurement)

varargout =peakfind(x_data,y_data,varargin)

image thumbnail

updated 11 months ago

Find Image Extrema by Tristan Ursell

Find local maxima, local minima, saddle points, and flat regions in an image. (image, maximum, maxima)

[x,y,z,c]=imextrema(im1,varargin)

image thumbnail

updated 1 year ago

Find local extrema places and values by Peter Csordas

Returns structure with local extrema (minimum, maximum) places and values. (signal processing, minimum, maximum)

out=extrems(in,varargin)

image thumbnail

updated 1 year ago

Limit figure size by Jan Simon

Set minimal or maximal size of a figure (figure, size, resize)

LimitSizeFig(FigH, Prop, Ext)

uTest_LimitSizeFig(doSpeed)

image thumbnail

updated almost 2 years ago

KTHVALUE (v2.1, jun 2012) by Jos (10584)

select the k-th smallest element in a (randomized) list (matrix, sort, select)

kthvalue(L,K)

image thumbnail

updated 2 years ago

Simple example of genetic algorithm for optimization problems by Andrea Cirillo

It is used to generate useful solutions to optimization and search problems. (genetic, algorithm, optimization)

[p_min, iter, f]=genetic_algorithm (func, numMaxInd, numF...

image thumbnail

updated almost 3 years ago

Allstats by Francisco de Castro

Many statistics of a vector or matrix (statistics, mean, mode)

allstats(A,varargin)

image thumbnail

updated almost 3 years ago

2D minimal bounding box by julien diener

Compute quickly the minimal bounding box of a set of 2D points (area, bounding box, minimum)

minBoundingBox(X)

image thumbnail

updated 3 years ago

Simple Example of Simulated Annealing Optimization by Francesco Pizzo

Example of developing a hybrid solution (Simulated Annealing + Pattern Search) for a case of study. (optimization, simulated annealing, smes)

U=energy(Qs,rs,drs,z_s)

Xp=perturbation(X,sigma)

[X f_old]=best_initial(X1,X2,X3,X4)

image thumbnail

updated 3 years ago

Simple example of PSO algorithm by Andrea Cirillo

Matlab function to find the minimum of a objective function with the PSO Algorithm (optimization, mathematics, pso)

[p_min, f_min, iter]=pso(func, numInd, range, n_var, tole...

image thumbnail

updated 3 years ago

Simple example of the Simplex Method by Andrea Cirillo

It's a function that finds the minimum value of a two variables function with the simplex method. (mathematics, optimization, function)

simplexMethod.m

image thumbnail

updated 3 years ago

Minimum Entropy Deconvolution (MED 1D and 2D) by Geoff McDonald

Generates a 1D FIR filter iteratively to minimize the entropy of the filtered signal(s). (minimum entropy decon..., maximum entropy decon..., med)

med2d.m

image thumbnail

updated 3 years ago

Pattern search method: deterministic iterative zero order algorithm by Andrea Cirillo

It finds the relative minimum of a two variables function with the Pattern search method. (optimization, mathematics, deterministic)

pattern_search.m

image thumbnail

updated 3 years ago

Minimum distance between two polygons by sjye

Computes the minimum distance between two different shape polygons. (Vertex-vertex case) (polygon, minimum, distance)

min_dist_btwn_two_polygons(P1,P2)

image thumbnail

updated 3 years ago

Least squares with minimum-norm solution by Ivo Houtzager

Least squares with minimum-norm solution (linear algebra, least, squares)

lsmin.m

lsmind.m

make_lsmin.m

image thumbnail

updated almost 4 years ago

Derivative-based Optimization by Nassim Khaled

Derivative-based Optimization using The Gradient Descent (gradient, descent, minimum)

Gradient_Descent_maximum.m

Gradient_Descent_minimum.m

image thumbnail

updated 5 years ago

Minimum distance between two polygons by Guillaume JACQUENOT

This function computes the minimum euclidean distance between two polygons P1 & P2. (polygon, distance, minimum)

curveintersect.m

min_dist_between_two_polygons.m

image thumbnail

updated 5 years ago

2D minimal segments distance by Roberto Olmi

Computes the minimal distace between two segments (measurements, distance, segments)

d=segDistance(P,Q)

image thumbnail

updated 6 years ago

Minimal Bounding Box by Johannes Korsawe

Minimal bounding box around points in the (x,y,z) space (bounding, box, cuboid)

minboundbox(x,y,z,metric,level)

plotminbox(cornerpoints,col)

image thumbnail

updated 6 years ago

Maximum Or Minimum for N Dimension Array by Serhend Arvas

These functions return the subscripts of the maximum or minimum in an Array (maximum, max, min)

Output=maxNsarvas(V)

Output=minNsarvas(V)

[mn,idx,col]=minn(A)

image thumbnail

updated 7 years ago

Hungarian Algorithm by Alexander Melin

An algorithm to find the minimum edge weight matching for an arbitrary bipartite graph. (optimization, minimum, maximum)

Hungarian(Perf)

image thumbnail

updated 8 years ago

fgridmin.m by Kenneth Johnson

global minimization utility (optimization, global optimization, utility)

fgridmin(y)

image thumbnail

updated 8 years ago

Quick search for local extremes by Miroslav Balda

New fast and reliable function for finding local extremes in a real vector. (matrices, minimum, maximum)

extr(x,exact)

image thumbnail

updated almost 9 years ago

peaks by Nagi Hatoum

Find the peaks and troughs in a vector. (peak, through, maximum)

[p,t]=peaks(s)

image thumbnail

updated 10 years ago

Accurate Confidence Intervals by Tim Ross

Computes especially accurate confidence intervals for proportions, rates, and their differences. (statistics, probability, confidence interval)

binopdf_01ok(x,n,p)

binopdf_of_p(p, x, n)

get_ci_cs1(x,n,alpha)

Contact us