BARSThis is a port of the Poisson version of BARS (Bayesian Adaptive Regression Splines) for Matlab. It replaces the LAPACK and BLAS library calls in the original C code with Matlab function calls.
Download BARS for matlab (zip archive)
- barsP.m: the MATLAB source file. "help barsP" for usage.
- defaultParams.m: a simple file which dictates the default parameters. barsP calls this function on startup.
- example.data: some test data. 2 columns: time bins, spike counts
- nlsd_mex.c: a mex-able version of logspline. Using this speeds up the initial estimate of the spline. It is not necessary to use it, but you'll have to compile it for your architecture: "mex nlsd_mex.c"