Rank: 428 based on 180 downloads (last 30 days) and 8 files submitted
photo

Patrick Mineault

E-mail
Company/University
McGill University
Lat/Long
45.50872039794922, -73.58116149902344

Personal Profile:

http://xcorr.net

Professional Interests:
neuroscience

 

Watch this Author's files

 

Files Posted by Patrick View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Nov 2012 Screenshot mexme - write MEX files in no time writes fully valid MEX .cpp files including mexFunction boilerplate based on numeric C/C++ snippet Author: Patrick Mineault mex, c, compiled code, mex tools, compile mex, mex code 13 6
  • 4.66667
4.7 | 3 ratings
07 Dec 2011 Screenshot Fit GLM with quadratic penalty Fits GLM with a quadratic penalty, determines hyperparams through cross-validation or evidence Author: Patrick Mineault penalized regression, generalized linear mo..., regularization, glm, maximum a posteriori, linear regression 6 5
  • 5.0
5.0 | 2 ratings
02 Nov 2011 Screenshot Auto Gaussian & Gabor fits Fit 1D/2D Gaussian or Gabor to a curve/surface without start guesses for params Author: Patrick Mineault gaussian, curve fit, global optimization, gibbs sampling, surface fit, 2d gaussian 64 19
  • 4.5
4.5 | 6 ratings
22 Sep 2011 Screenshot Matching pursuit for 1D signals Performs Matching Pursuit on 1d (temporal) signals with custom basis Author: Patrick Mineault matching pursuit, basis pursuit, sound processing, convolution, timefrequency analysi..., spectrogram 24 0
02 Sep 2011 Screenshot Fast B-spline class Fit, evaluate, differentiate non-uniform B-splines of any order - fast Author: Patrick Mineault bspline, pspline, spline, cubic spline, smoothing spline, interpolation 36 6
  • 5.0
5.0 | 3 ratings
Comments and Ratings by Patrick View all
Updated File Comments Rating
02 May 2013 Fast B-spline class Fit, evaluate, differentiate non-uniform B-splines of any order - fast Author: Patrick Mineault

These are 1d splines. You can obtain 2d/3d splines using tensor products of the basis given by the class.

07 Nov 2012 Fast B-spline class Fit, evaluate, differentiate non-uniform B-splines of any order - fast Author: Patrick Mineault

Richard has sent me an email with this solution for his problems which stem from using a different compiler (VC++ on Windows rather than gcc on Linux):

"Under Windows it is important that all files have the ending .cpp instead of .c so that the right compiler is taken. After correcting that (*.c à *.cpp) and stepping through all calls of .c files in the code which also have to be corrected, of course, everything works perfect!"

22 Apr 2012 Fit GLM with quadratic penalty Fits GLM with a quadratic penalty, determines hyperparams through cross-validation or evidence Author: Patrick Mineault

Either Generalized Linear Models by McCullough and Nelder or Generalized Additive Models: An introduction with R by Simon Wood.

26 Mar 2012 Auto Gaussian & Gabor fits Fit 1D/2D Gaussian or Gabor to a curve/surface without start guesses for params Author: Patrick Mineault

Ben, bootstrapping might work incorrectly if the Gaussian bump takes only a few pixels. In general, MCMC should be more reliable. The only reason I would use bootstrapping over MCMC is that MCMC is mathematically complicated and it's a bit tough to explain in the methods section of a paper.

Daniel, it's difficult to say without having access to the data you have. It's possible that there's a bug in the code that only appears for very specific datasets. Try to boil it down to the simplest example that shows the bug and send me the code to replicate the problem.

20 Feb 2012 Auto Gaussian & Gabor fits Fit 1D/2D Gaussian or Gabor to a curve/surface without start guesses for params Author: Patrick Mineault

Ben, look at the r2 values that Matlab gives you. If it's 1, then it's a perfect fit, if it's 0, then not. The other cue is if you compute error bars using one of the many methods that's included in the code, and your error bars are huge, that's a signal of misfit.

Comments and Ratings on Patrick's Files View all
Updated File Comment by Comments Rating
02 May 2013 Fast B-spline class Fit, evaluate, differentiate non-uniform B-splines of any order - fast Author: Patrick Mineault Ben

@Patrick
Could you kindly provide a sample code for 2D/3D spline using tensor product. I believe that will further promote your code and enlarge your contributions to the society. Thank you!

02 May 2013 Fast B-spline class Fit, evaluate, differentiate non-uniform B-splines of any order - fast Author: Patrick Mineault Mineault, Patrick

These are 1d splines. You can obtain 2d/3d splines using tensor products of the basis given by the class.

02 May 2013 Fast B-spline class Fit, evaluate, differentiate non-uniform B-splines of any order - fast Author: Patrick Mineault Arso

Hi,

This is 2D case only?

Is there parametrized interpolation like evalAt(t=0...1)?

It fails in general, for messy points x=[0; 6 ; 3 ; 12; 8] and y=[0;-3; 6; 12; 0]?

If I am not wrong, it works similar as function provided with Matlab...

If You could extend such possibilities in 3D - it would be great, because Matlab is lacking with CAD features.

18 Apr 2013 Auto Gaussian & Gabor fits Fit 1D/2D Gaussian or Gabor to a curve/surface without start guesses for params Author: Patrick Mineault yuanmh

I have used the 'autoGaussianSurf' to estimate 2d Gaussian distribution,the result turns out to be not very good, the surface function is something like
zi = a*exp(-((xi-x0).^2/2/sigmax^2 + (yi-y0).^2/2/sigmay^2)) + b,but in my function the 'a' is equal to 1,and 'b' is zero,but the parameters 'a' and 'b' estimate from 'autoGaussianSurf' is 0.7 and -0.5.My question is if i have know the value of parameters 'a' and 'b' ,how can i change the program to make the 'autoGaussianSurf' fitting the surface better.

16 Mar 2013 mexme - write MEX files in no time writes fully valid MEX .cpp files including mexFunction boilerplate based on numeric C/C++ snippet Author: Patrick Mineault more, rohit

Top Tags Applied by Patrick
generalized linear model, glm, regularization, 2d gaussian, argument validation
Files Tagged by Patrick View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Nov 2012 Screenshot mexme - write MEX files in no time writes fully valid MEX .cpp files including mexFunction boilerplate based on numeric C/C++ snippet Author: Patrick Mineault mex, c, compiled code, mex tools, compile mex, mex code 13 6
  • 4.66667
4.7 | 3 ratings
07 Dec 2011 Screenshot Fit GLM with quadratic penalty Fits GLM with a quadratic penalty, determines hyperparams through cross-validation or evidence Author: Patrick Mineault penalized regression, generalized linear mo..., regularization, glm, maximum a posteriori, linear regression 6 5
  • 5.0
5.0 | 2 ratings
02 Nov 2011 Screenshot Auto Gaussian & Gabor fits Fit 1D/2D Gaussian or Gabor to a curve/surface without start guesses for params Author: Patrick Mineault gaussian, curve fit, global optimization, gibbs sampling, surface fit, 2d gaussian 64 19
  • 4.5
4.5 | 6 ratings
22 Sep 2011 Screenshot Matching pursuit for 1D signals Performs Matching Pursuit on 1d (temporal) signals with custom basis Author: Patrick Mineault matching pursuit, basis pursuit, sound processing, convolution, timefrequency analysi..., spectrogram 24 0
02 Sep 2011 Screenshot Fast B-spline class Fit, evaluate, differentiate non-uniform B-splines of any order - fast Author: Patrick Mineault bspline, pspline, spline, cubic spline, smoothing spline, interpolation 36 6
  • 5.0
5.0 | 3 ratings

Contact us