image thumbnail

updated 2 years ago

mexme - write MEX files in no time by Patrick Mineault

writes fully valid MEX .cpp files including mexFunction boilerplate based on numeric C/C++ snippet (mex, c, compiled code)

mexme(cstring,inputargs,outputargs,opts)

myrecursivefilter(x,alpha)

parseTemplate(str,varargin)

image thumbnail

updated 3 years ago

Fit GLM with quadratic penalty by Patrick Mineault

Fits GLM with a quadratic penalty, determines hyperparams through cross-validation or evidence (glm, generalized linear mo..., maximum a posteriori)

crossValidate(y,X,lambda0,fitfun,valfun,folds,opts)

cvglmfitqp(y,X,qf,folds,opts)

evalGlmLikelihood(y,X,w,b,family,familyextra,weights)

image thumbnail

updated 3 years ago

Auto Gaussian & Gabor fits by Patrick Mineault

Fit 1D/2D Gaussian or Gabor to a curve/surface without start guesses for params (gaussian, curve fit, global optimization)

autoGaborSurf(xi,yi,zi,opts)

autoGaussianCurve(xi,zi,opts)

autoGaussianSurf(xi,yi,zi,opts)

image thumbnail

updated 3 years ago

Matching pursuit for 1D signals by Patrick Mineault

Performs Matching Pursuit on 1d (temporal) signals with custom basis (matching pursuit, basis pursuit, temporal signal)

temporalMP(y,B,nonnegative,maxiter,mindelta,deadzone)

TryTemporalMP.m

image thumbnail

updated 3 years ago

Fast B-spline class by Patrick Mineault

Fit, evaluate, differentiate non-uniform B-splines of any order - fast (bspline, pspline, spline)

CompileMexFiles()

fastBSpline

TryBSpline.m

image thumbnail

updated 3 years ago

Boosted Generalized Additive Models (bgam) package by Patrick Mineault

Boosting for the Generalized Additive and Linear Models (GAM and GLM). (glm, gam, generalized linear mo...)

fitbgam(y,X,trainer,fitParams)

fitcvbgam(y,X,trainer,fitParams,folds)

bgam.CVFit

image thumbnail

updated 3 years ago

Unique elements in cell array by Patrick Mineault

unique for numeric cell arrays. If c = {[0],[1,2],[0],[8],[1,2]} returns {[0],[1,2],[8]} (unique, cell array, utility function)

uniquecell(A)

image thumbnail

updated 4 years ago

Embiggen by Patrick Mineault

Add (or multiply, divide, etc) a matrix A to a vector b with the simple syntax A + Embiggen(b) (bsxfun, elementwise, expansion)

Embiggen

Contact us