image thumbnail

updated 2 months ago

A suite of minimal bounding objects by John D'Errico

Suite of tools to compute minimal bounding circles, rectangles, triangles, spheres, incircles, etc. (miminum, bound, bounding)

incircle(x,y)

insphere(xyz,tri)

minboundcircle(x,y,hullflag)

image thumbnail

updated 3 months ago

polyfitn by John D'Errico

Polynomial modeling in 1 or n dimensions (polyfit, modeling, regression)

polyfitn_demo

polydern(p,diffvar)

polyfitn(indepvar,depvar,modelterms)

image thumbnail

updated 3 months ago

SLM - Shape Language Modeling by John D'Errico

Least squares spline modeling using shape primitives (spline, splines, cubic)

slm_tutorial

hermite2slm(harray)

lse(A,b,C,d,solverflag,weights)

image thumbnail

updated 6 months ago

Moving window standard deviation by John D'Errico

A (fast) windowed std on a time series (standard deviation, std, window)

movingstd(x,k,windowmode)

image thumbnail

updated 9 months ago

HPF - a big decimal class by John D'Errico

High precision floating point arithmetic, a new class written in MATLAB (hpf, multiple precision, big decimal)

Demo script for my High Precision Floating point decimal

hpf_regression_testing

DefaultDecimalBase(DBaseNew)

image thumbnail

updated 11 months ago

press by Antonio Trujillo-Ortiz

Prediction error sum of squares. (statistics, probability, residual scaling)

press(D)

image thumbnail

updated 12 months ago

Variable Precision Integer Arithmetic by John D'Errico

Arithmetic with integers of fully arbitrary size. Arrays and vectors of vpi numbers are supported. (integer, biginteger, arithmetic)

demo_vpi

base2vpi(B,base)

bin2vpi(B)

image thumbnail

updated 12 months ago

nearestSPD by John D'Errico

Finding the nearest positive definite matrix (positive definite mat..., covariance matrix, covariance)

nearestSPD_demo

nearestSPD(A)

image thumbnail

updated 1 year ago

distance2curve by John D'Errico

Find the closest point on a (n-dimensional) curve to any given point or set of points (nearest, closest, distance)

distance2curve(curvexy,mapxy,interpmethod)

image thumbnail

updated 1 year ago

Inverse (integrated) gradient by John D'Errico

Vectorized & fully sparse 1-d, 2-d, & 3-d integrated gradients (integration, cumulative, gradient)

consolidator(x,y,aggregation_mode,tol)

intgrad1(fx,dx,f1,method)

intgrad2(fx,fy,dx,dy,f11)

image thumbnail

updated almost 2 years ago

Inhull by John D'Errico

Efficient test for points inside a convex hull in n dimensions (convex hull, inhull, hull)

inhull(testpts,xyz,tess,tol)

image thumbnail

updated almost 2 years ago

IPDM: Inter-Point Distance Matrix by John D'Errico

An efficient and accurate Inter-Point Distance Matrix (distance, interpoint, distances)

demo_ipdm

ipdm(data1,varargin)

image thumbnail

updated almost 2 years ago

interparc by John D'Errico

Distance based interpolation along a general curve in space (interpolation, spline, linear)

interparc(t,px,py,varargin)

image thumbnail

updated almost 2 years ago

inpaint_nans by John D'Errico

Interpolates (& extrapolates) NaN elements in a 2d array. (nan, inpainting, replace)

(nn(:,1)<1)|(nn(:,1)>n)|(nn(:,2)<1)|(nn(:,2)>m); nn(L,...

valid{ind}; end end

inpaint_nans_demo.m

image thumbnail

updated 2 years ago

The Fibonacci Sequence by John D'Errico

Efficient computation of Fibonacci and Lucas numbers (fibonacci, lucas, numbers)

fibonacciEvolution

fibonacci(n,modulus)

fibrecur(N)

image thumbnail

updated 2 years ago

FresnelS and FresnelC by John D'Errico

Efficient and accurate computation of the Fresnel sine and cosine integrals (fresnel, sine, cosine)

fresnelC(X,fresnelType)

fresnelS(X,fresnelType)

image thumbnail

updated 2 years ago

fminsearchbnd, fminsearchcon by John D'Errico

Bound constrained optimization using fminsearch (optimization, fminsearch, constraint)

fminsearchbnd_demo

fminsearchcon_demo

[x,fval,exitflag,output]=fminsearchcon(fun,x0,LB,UB,A,b,n...

image thumbnail

updated 2 years ago

arclength by John D'Errico

Compute the arclength of a general curve in any number of dimensions (arclength, spline, curve)

arclength(px,py,varargin)

image thumbnail

updated 2 years ago

putvar, uigetvar by John D'Errico

Move (get or put) variable(s) directly between a function workspace and the base workspace (variable, assign, assignin)

putvar(varargin)

uigetvar(variableclass)

image thumbnail

updated 2 years ago

User Defined Constants by John D'Errico

Define your own special constants

Demo for the User Defined Constants capability in MATLAB

defcon(ConstantName,Value,Description)

image thumbnail

updated 3 years ago

Adaptive Robust Numerical Differentiation by John D'Errico

Numerical derivative of an analytically supplied function, also gradient, Jacobian & Hessian (adaptive, differentiation, automatic)

derivest_demo

multivariable_calc_demo

derivest(fun,x0,varargin)

image thumbnail

updated 3 years ago

INTERPNS by John D'Errico

N-dimensional simplicial interpolation (interp2, interpolation, interpolant)

interpns(V,Xi,nodelist,method)

image thumbnail

updated 3 years ago

Symbolic Polynomial Manipulation by John D'Errico

Symbolic polynomial manipulation as an exercise in OOP

Sympoly_demos

[nodes,weights]=gaussquadrule(n,class,alpha,beta)

adjoint(A)

image thumbnail

updated almost 4 years ago

spheresegmentvolume by John D'Errico

Volume of a (hyper)sphere, sphere cap, or any band through a sphere defined by two parallel planes

spheresegmentvolume(t,n,radius)

image thumbnail

updated almost 4 years ago

Surface Fitting using gridfit by John D'Errico

Model 2-d surfaces from scattered data (approximation, interpolation, modeling)

gridfit_demo

gridfit(x,y,z,xnodes,ynodes,varargin)

test_main.m

image thumbnail

updated 4 years ago

LSE by John D'Errico

A linear least squares solver, subject to linear equality constraints (least squares, regression, linear regression)

lse(A,b,C,d,solverflag,weights)

image thumbnail

updated 4 years ago

String subsequence tools by John D'Errico

Identify common substrings of a pair of strings

commonsubstring(str1,str2,substringlength)

substrings(str,nsub,uniqueflag)

image thumbnail

updated 4 years ago

allwords by John D'Errico

Parse a sentence or any string into distinct "words" (string, char, words)

allwords(str,sepchars)

image thumbnail

updated 4 years ago

factorpairs by John D'Errico

Generate all pairs of factors N = p*q, p <= q, for positive integer N (factor, factors, divisors)

factorpairs(N)

image thumbnail

updated 4 years ago

nthprime by John D'Errico

Finds either the n'th prime, or compute the number of primes that are less than some given value.

nthprime(N,opmode)

image thumbnail

updated 4 years ago

MIN2, MAX2 by John D'Errico

Global min or max value of a 2-d array, the search may be limited to specified rows or columns

max2(M,userows,usecols)

min2(M,userows,usecols)

image thumbnail

updated 4 years ago

binomfactors by John D'Errico

Returns a factored form for very large binomial coefficients

binomfactors(n,k)

image thumbnail

updated 5 years ago

Eigenshuffle by John D'Errico

Consistently sorted eigenvalue and eigenvector sequences (eigenvalues, eig, order)

eigenshuffle(Asequence)

image thumbnail

updated 5 years ago

Circulant matrix by John D'Errico

The circulant matrix generated from a vector as the first row (or first column) (circulant, matrix, toeplitz)

circulant(vec,direction)

Contact us