plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
lcnhappe/happe-master
efficiency.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/bct/efficiency.m
1,888
utf_8
6f4bd3c62d773c46f3e2ac7d16e67a86
function E=efficiency(G,local) %EFFICIENCY Global efficiency, local efficiency. % % Eglob = efficiency(A); % Eloc = efficiency(A,1); % % The global efficiency is the average of inverse shortest path length, % and is inversely related to the characteristic path length. % % The local efficiency is the glob...
github
lcnhappe/happe-master
generative_model.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/bct/generative_model.m
23,153
utf_8
dd5cd182d827c9ede9fb54855b0cafd8
function b = generative_model(A,D,m,modeltype,modelvar,params,epsilon) %GENERATIVE_MODEL run generative model code % % B = GENERATIVE_MODEL(A,D,m,modeltype,modelvar,params) % % Generates synthetic networks using the models described in the study by % Betzel et al (2016) in Neuroimage. % % Inputs: % ...
github
lcnhappe/happe-master
evaluate_generative_model.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/bct/evaluate_generative_model.m
3,625
utf_8
6c6df608db42f67c0908af434bff6aca
function [B,E,K] = evaluate_generative_model(A,Atgt,D,modeltype,modelvar,params) % EVALUATE_GENERATIVE_MODEL generate and evaluate synthetic networks % % [B,E,K] = EVALUATE_GENERATIVE_MODEL(A,Atgt,D,m,modeltype,modelvar,params) % % Generates synthetic networks and evaluates their energy function (see % below...
github
lcnhappe/happe-master
make_motif34lib.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/bct/make_motif34lib.m
2,838
utf_8
68f4ca45316fc99ab16adbd5bda80236
function make_motif34lib %MAKE_MOTIF34LIB Auxiliary motif library function % % make_motif34lib; % % This function generates the motif34lib.mat library required for all % other motif computations. % % % Mika Rubinov, UNSW, 2007-2010 %#ok<*ASGLU> [M3,M3n,ID3,N3]=motif3generate; [M4,M4n,ID4,N4]=motif4gen...
github
lcnhappe/happe-master
LoadBinary.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/LoadBinary.m
9,722
iso_8859_13
ac6b47d239db8b0b4e76bb90c8d6263b
function data = LoadBinary(filename,varargin) %LoadBinary - Load data from a multiplexed binary file. % % Reading a subset of the data can be done in two different manners: either % by specifying start time and duration (more intuitive), or by indicating % the position and size of the subset in terms of number of r...
github
lcnhappe/happe-master
isivector.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/isivector.m
2,128
iso_8859_13
1468dbe277d48ba93d39a34470a2a792
%isivector - Test if parameter is a vector of integers satisfying an optional list of tests. % % USAGE % % test = isivector(x,test1,test2,...) % % x parameter to test % test1... optional list of additional tests (see examples below) % % EXAMPLES % % % Test if x is a vector of doubles % ...
github
lcnhappe/happe-master
isradians.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/isradians.m
1,179
iso_8859_13
b6d8ed7786fab2bd646134c1424d8304
%isradians - Test if parameter is in range [0,2pi] or [-pi,pi]. % % USAGE % % test = isradians(x) % % x array to test (NaNs are ignored) % % OUTPUT % % range 0 if uncertain (issues a warning) % 1 for [-pi,pi] % 2 for [0,2pi] % SEE ALSO % % See als...
github
lcnhappe/happe-master
isiscalar.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/isiscalar.m
1,623
iso_8859_13
6b14f01efdb2893077da44a97760eecd
%isiscalar - Test if parameter is a scalar (integer) satisfying an optional list of tests. % % USAGE % % test = isiscalar(x,test1,test2,...) % % x parameter to test % test1... optional list of additional tests % % EXAMPLES % % % Test if x is a scalar (double) % isiscalar(x) % % % ...
github
lcnhappe/happe-master
islvector.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/islvector.m
1,685
iso_8859_13
0dfac49b5831a12166d7cfbeafcd5445
%islvector - Test if parameter is a (pseudo) logical vector satisfying an optional list of tests. % % USAGE % % test = islvector(x,test1,test2,...) % % x parameter to test % test1... optional list of additional tests (see examples below) % % EXAMPLES % % % Test if x is a logical vector ...
github
lcnhappe/happe-master
wrap.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/wrap.m
974
iso_8859_13
9fba4315faafeb5a9184f843e7593872
%wrap - Set radian angles in range [0,2pi] or [-pi,pi]. % % USAGE % % y = wrap(x,range) % % x angles in radians % range optional: 1 for [-pi,pi] (default) % 2 for [0,2pi] % % SEE ALSO % % See also isradians. % % Copyright (C) 2010-2011 by Michaël Zugaro...
github
lcnhappe/happe-master
isimatrix.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/isimatrix.m
1,711
iso_8859_13
301153c731a86f3cf9ab2cd3471a5d60
%isimatrix - Test if parameter is a matrix of integers (>= 2 columns). % % USAGE % % test = isimatrix(x,test1,test2,...) % % x parameter to test % test1... optional list of additional tests % % EXAMPLES % % % Test if x is a matrix of doubles % isimatrix(x) % % % Test if x is a mat...
github
lcnhappe/happe-master
islscalar.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/islscalar.m
1,077
iso_8859_13
af0d9269f1590dee3176575b0083aced
%islscalar - Test if parameter is a (pseudo) logical scalar. % % USAGE % % test = islscalar(x) % % x parameter to test % % NOTE % % To be considered logical, the scalar should be equal to 0 or 1, but it does % not need to actually be of class 'logical' (class(x) could be e.g. 'double'). % % ...
github
lcnhappe/happe-master
isdvector.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/isdvector.m
2,081
iso_8859_13
5ef70521f0fa1b770ada8d42d0fe9bee
%isdvector - Test if parameter is a vector of doubles satisfying an optional list of tests. % % USAGE % % test = isdvector(x,test1,test2,...) % % x parameter to test % test1... optional list of additional tests (see examples below) % % EXAMPLES % % % Test if x is a vector of doubles % ...
github
lcnhappe/happe-master
isstring.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/isstring.m
992
iso_8859_13
3f0150034c5c2e51b50c80fc3828fd12
%isstring - Test if parameter is an (admissible) character string. % % USAGE % % test = isstring(x,string1,string2,...) % % x item to test % string1... optional list of admissible strings % % SEE ALSO % % See also isdmatrix, isdvector, isdscalar, isimatrix, isivector, isiscalar. % % Copy...
github
lcnhappe/happe-master
islmatrix.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/islmatrix.m
1,149
iso_8859_13
2e0a52b0be376a939b2c68ef383358b2
%islmatrix - Test if parameter is a logical matrix (>= 2 columns). % % USAGE % % test = islmatrix(x) % % x parameter to test % % NOTE % % To be considered logical, the matrix should contain only values 0 and 1, but it % does not need to actually be of class 'logical' (class(x) could be e.g. '...
github
lcnhappe/happe-master
isdscalar.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/isdscalar.m
1,575
iso_8859_13
01e7b8dfec919c2f708c7a25d96262e3
%isdscalar - Test if parameter is a scalar (double) satisfying an optional list of tests. % % USAGE % % test = isdscalar(x,test1,test2,...) % % x parameter to test % test1... optional list of additional tests % % EXAMPLES % % % Test if x is a scalar (double) % isdscalar(x) % % % T...
github
lcnhappe/happe-master
isdmatrix.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neuroscope/private/isdmatrix.m
1,656
iso_8859_13
ba7943baf9c16023dd749f34097850df
%isdmatrix - Test if parameter is a matrix of doubles (>= 2 columns). % % USAGE % % test = isdmatrix(x,test1,test2,...) % % x parameter to test % test1... optional list of additional tests % % EXAMPLES % % % Test if x is a matrix of doubles % isdmatrix(x) % % % Test if x is a matr...
github
lcnhappe/happe-master
readneuronedata.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neurone/readneuronedata.m
3,668
utf_8
8b13da2d37c92187282b24464ba2d0cf
% readneuronedata() - Read NeurOne Binary files % % Usage: >> data = readneuronedata(dataFiles,nChannels,chans) % % =================================================================== % Inputs: % dataFiles - A cell structure containing full paths for data % files to be read. Th...
github
lcnhappe/happe-master
pop_readneurone.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neurone/pop_readneurone.m
8,116
utf_8
c755af0f65d561b1d3adaa77368be5ff
% pop_readneurone() - A function for reading NeurOne data. % % Usage: >> [EEGOUT,command] = pop_readneurone() % Launches GUI for user input % OR % >> [EEGOUT,command] = pop_readneurone(dataPath, sessionPhaseNumber, chans) % % Please note that if this function is called without using the menu item % in EEGL...
github
lcnhappe/happe-master
eegplugin_neurone.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neurone/eegplugin_neurone.m
1,598
utf_8
1b5fe8ed27d31f4de4608dd4b652f905
% eegplugin_neurone() - EEGLAB plugin to import data from a NeurOne device. % % Usage: % >> eegplugin_neurone(fig,try_strings,catch_strings) % % Inputs: % fig - [integer] handle to EEGLAB figure % try_strings - [struct] "try" strings for menu callbacks. % catch_strings - [struct] "catch" string...
github
lcnhappe/happe-master
readneuroneevents.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neurone/readneuroneevents.m
4,947
utf_8
b51f19a943ed465494de552dfeb3b250
% readneuroneevents() - Read events from a Mega NeurOne device. % % Usage: >> event = readneuroneevents(dataPath) % % ======================================================================= % Input: % dataPath - Direct path for the folder containing the event % data (file 'ev...
github
lcnhappe/happe-master
readneurone.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neurone/readneurone.m
11,773
utf_8
cf4bc45088b4719e91b7b6b87c7300f1
% readneurone() - Read data from a Mega NeurOne device and arrange it % into a struct. % % Usage: >> NEURONE = readneurone(dataPath, sessionPhaseNumber, chans) % % ======================================================================= % Inputs: % dataPath - Path to directory conta...
github
lcnhappe/happe-master
guireadneurone.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/neurone/guireadneurone.m
4,818
utf_8
88c8053fef247ef0eff9f0bcd3992657
function varargout = guireadneurone(varargin) % GUIREADNEURONE Application M-file for guireadneurone.fig % FIG = GUIREADNEURONE launch guireadneurone GUI. % GUIREADNEURONE('callback_name', ...) invoke the named callback. % % ======================================================================== % NOTE: % This f...
github
lcnhappe/happe-master
floatread.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/floatread.m
5,572
utf_8
942a49968bcce849dfc9d359ac7d2651
% floatread() - Read matrix from float file ssuming four byte floating point number % Can use fseek() to read an arbitary (continguous) submatrix. % % Usage: >> a = floatread(filename,size,'format',offset) % % Inputs: % filename - name of the file % size - determine the number of float ele...
github
lcnhappe/happe-master
floatwrite.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/floatwrite.m
3,169
utf_8
8472e61c3208f7a445ec052e9cc52b4b
% floatwrite() - Write data matrix to float file. % % Usage: >> floatwrite(data,filename, 'format') % % Inputs: % data - write matrix data to specified file as four-byte floating point numbers. % filename - name of the file % 'format' - The option FORMAT argument specifies the storage format as % ...
github
lcnhappe/happe-master
eeglab2fieldtrip.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/eeglab2fieldtrip.m
5,477
utf_8
bdb52aada07dc61861584ca6a70c7482
% eeglab2fieldtrip() - do this ... % % Usage: >> data = eeglab2fieldtrip( EEG, fieldbox, transform ); % % Inputs: % EEG - [struct] EEGLAB structure % fieldbox - ['preprocessing'|'freqanalysis'|'timelockanalysis'|'companalysis'] % transform - ['none'|'dipfit'] transform channel locations for DIPFIT % ...
github
lcnhappe/happe-master
sobi.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/sobi.m
5,094
utf_8
ce6035ad7a3d7312fee7cf1a37d8e04e
% sobi() - Second Order Blind Identification (SOBI) by joint diagonalization of % correlation matrices. THIS CODE ASSUMES TEMPORALLY CORRELATED SIGNALS, % and uses correlations across times in performing the signal separation. % Thus, estimated time delayed covariance matrices must be nonsi...
github
lcnhappe/happe-master
varimax.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/varimax.m
4,437
utf_8
d87cb189d37524e4920c2f9ad9c41aa4
% varimax() - Perform orthogonal Varimax rotation on rows of a data % matrix. % % Usage: >> V = varimax(data); % >> [V,rotdata] = varimax(data,tol); % >> [V,rotdata] = varimax(data,tol,'noreorder') % % Inputs: % data - data matrix % tol - set the termination tolerance to ...
github
lcnhappe/happe-master
pcsquash.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/pcsquash.m
2,802
utf_8
9e0a0372b72b09c731ef70785b8ce862
% pcsquash() - compress data using Principal Component Analysis (PCA) % into a principal component subspace. To project back % into the original channel space, use pcexpand() % % Usage: % >> [eigenvectors,eigenvalues] = pcsquash(data,ncomps); % >> [eigenvectors,eigenvalues,com...
github
lcnhappe/happe-master
binica.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/binica.m
13,069
utf_8
e1bfb70b5edae53d01116b6f9cf42d51
% binica() - Run stand-alone binary version of runica() from the % Matlab command line. Saves time and memory relative % to runica(). If stored in a float file, data are not % read into Matlab, and so may be larger than Matlab % can handle owing to memory limitations. % Usa...
github
lcnhappe/happe-master
loadcnt.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/loadcnt.m
24,511
utf_8
4c5259259e1f529ae64cfe52eec5bd9a
% loadcnt() - Load a Neuroscan continuous signal file. % % Usage: % >> cnt = loadcnt(file, varargin) % % Inputs: % filename - name of the file with extension % % Optional inputs: % 't1' - start at time t1, default 0. Warning, events latency % might be innacurate (this is an open issue). % ...
github
lcnhappe/happe-master
runica.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/runica.m
64,715
utf_8
6d997fa33b536afd5abe7d1cac2c0c8d
% runica() - Perform Independent Component Analysis (ICA) decomposition % of input data using the logistic infomax ICA algorithm of % Bell & Sejnowski (1995) with the natural gradient feature % of Amari, Cichocki & Yang, or optionally the extended-ICA % algorithm of Lee, G...
github
lcnhappe/happe-master
jader.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/eeglab/jader.m
11,455
utf_8
8b74fa9e0345ee0857e1e564b74dd872
% jader() - blind separation of real signals using JADE (v1.5, Dec. 1997). % % Usage: % >> B = jader(X); % >> B = jader(X,m); % % Notes: % 1) If X is an nxT data matrix (n sensors, T samples) then % B=jader(X) is a nxn separating matrix such that S=B*X is an nxT % matrix of estimated source signals. % 2)...
github
lcnhappe/happe-master
spm_write_sn.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_write_sn.m
16,446
utf_8
c5ee1fa9a0d128de2d7e3d4522ea5ad1
function VO = spm_write_sn(V,prm,flags,extras) % Write Out Warped Images. % FORMAT VO = spm_write_sn(V,prm,flags,msk) % V - Images to transform (filenames or volume structure). % matname - Transformation information (filename or structure). % flags - flags structure, with fields... % interp - ...
github
lcnhappe/happe-master
spm_affreg.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_affreg.m
18,476
utf_8
46e5122f9bf661904177ad3e3beb09c1
function [M,scal] = spm_affreg(VG,VF,flags,M,scal) % Affine registration using least squares. % FORMAT [M,scal] = spm_affreg(VG,VF,flags,M0,scal0) % % VG - Vector of template volumes. % VF - Source volume. % flags - a structure containing various options. The fields are: % WG - Weig...
github
lcnhappe/happe-master
spm_vol.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_vol.m
3,510
utf_8
fe778e6a833de2a9f5466018c571d5a6
function V = spm_vol(P) % Get header information etc for images. % FORMAT V = spm_vol(P) % P - a matrix of filenames. % V - a vector of structures containing image volume information. % The elements of the structures are: % V.fname - the filename of the image. % V.dim - the x, y and z dimensions of the vo...
github
lcnhappe/happe-master
spm_read_netcdf.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_read_netcdf.m
3,640
utf_8
9339212a576f5d67662107cebb087054
function cdf = spm_read_netcdf(fname) % Read the header information from a NetCDF file into a data structure. % FORMAT cdf = spm_read_netcdf(fname) % fname - name of NetCDF file % cdf - data structure % % See: http://www.unidata.ucar.edu/packages/netcdf/ % _____________________________________________________________...
github
lcnhappe/happe-master
spm_figure.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_figure.m
30,750
utf_8
93a783638e6b9249e4ea8bb6377a5308
function varargout=spm_figure(varargin) % Setup and callback functions for Graphics window % FORMAT varargout=spm_figure(varargin) % - An embedded callback, multi-function function % - For detailed programmers comments, see format specifications % in main body of code %______________________________...
github
lcnhappe/happe-master
spm_smoothto8bit.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_smoothto8bit.m
2,262
utf_8
b2475a56514dcda30f94612977b6f68a
function VO = spm_smoothto8bit(V,fwhm) % 3 dimensional convolution of an image to 8bit data in memory % FORMAT VO = spm_smoothto8bit(V,fwhm) % V - mapped image to be smoothed % fwhm - FWHM of Guassian filter width in mm % VO - smoothed volume in a form that can be used by the % spm_*_vol.mex* functions....
github
lcnhappe/happe-master
spm_platform.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_platform.m
7,715
utf_8
c43c4cc00de257f7ef7f8f9e79552a22
function varargout=spm_platform(varargin) % Platform specific configuration parameters for SPM % % FORMAT ans = spm_platform(arg) % arg - optional string argument, can be % - 'bigend' - return whether this architecture is bigendian % - Inf - is not IEEE floating point % ...
github
lcnhappe/happe-master
spm_read_hdr.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_read_hdr.m
5,294
utf_8
674302bc6310dd07e5c76a9cc58fc5ce
function [hdr,otherendian] = spm_read_hdr(fname) % Read (SPM customised) Analyze header % FORMAT [hdr,otherendian] = spm_read_hdr(fname) % fname - .hdr filename % hdr - structure containing Analyze header % otherendian - byte swapping necessary flag %_______________________________________________________...
github
lcnhappe/happe-master
spm_write_plane.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_write_plane.m
4,446
utf_8
4112c03c69d90f524531bf05dc467067
function V = spm_write_plane(V,A,p) % Write a transverse plane of image data. % FORMAT V = spm_write_plane(V,A,p) % V - data structure containing image information. % - see spm_vol for a description. % A - the two dimensional image to write. % p - the plane number (beginning from 1). % % VO - (possibly) mo...
github
lcnhappe/happe-master
spm_normalise.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_normalise.m
12,887
utf_8
e8649290b7272eb0337aeae86fb737c0
function params = spm_normalise(VG,VF,matname,VWG,VWF,flags) % Spatial (stereotactic) normalization % % FORMAT params = spm_normalise(VG,VF,matname,VWG,VWF,flags) % VG - template handle(s) % VF - handle of image to estimate params from % matname - name of file to store deformation definitions % VWG ...
github
lcnhappe/happe-master
spm_create_vol.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_create_vol.m
11,434
utf_8
f18edbf50d6186af1c5108b814690894
function V = spm_create_vol(V,varargin) % Create an image file. % FORMAT Vo = spm_create_vol(Vi,['noopen']) % Vi - data structure containing image information. % - see spm_vol for a description. % 'noopen' - optional flag to say "don't open/create the image file". % Vo - data structure after modification for w...
github
lcnhappe/happe-master
spm_segment.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_segment.m
23,496
utf_8
9a46c30048feeec44530aa433c773546
function VO = spm_segment(VF,PG,flags) % Segment an MR image into Gray, White & CSF. % % FORMAT VO = spm_segment(PF,PG,flags) % PF - name(s) of image(s) to segment (must have same dimensions). % PG - name(s) of template image(s) for realignment. % - or a 4x4 transformation matrix which maps from the image t...
github
lcnhappe/happe-master
spm_vol_ecat7.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm2/spm_vol_ecat7.m
16,814
utf_8
7c015c4444d187b46b81134cf388711c
function V = spm_vol_ecat7(fname,required) % Get header information etc. for ECAT 7 images. % FORMAT V = spm_vol_ecat7(fname,required) % P - an ECAT 7 filename. % fname - a structure containing image volume information. % required - an optional text argument specifying which volumes to % u...
github
lcnhappe/happe-master
read_wobj.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/wavefront/read_wobj.m
14,065
utf_8
9ba67412c5fae158393557fd39a68306
function OBJ=read_wobj(fullfilename) % Read the objects from a Wavefront OBJ file % % OBJ=read_wobj(filename); % % OBJ struct containing: % % OBJ.vertices : Vertices coordinates % OBJ.vertices_texture: Texture coordinates % OBJ.vertices_normal : Normal vectors % OBJ.vertices_point : Vertice data used for points and li...
github
lcnhappe/happe-master
write_wobj.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/wavefront/write_wobj.m
7,933
utf_8
96f334af246b0a305d8e8d354ddc7bba
function write_wobj(OBJ,fullfilename) % Write objects to a Wavefront OBJ file % % write_wobj(OBJ,filename); % % OBJ struct containing: % % OBJ.vertices : Vertices coordinates % OBJ.vertices_texture: Texture coordinates % OBJ.vertices_normal : Normal vectors % OBJ.vertices_point : Vertice data used for points and line...
github
lcnhappe/happe-master
mne_load_coil_def.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/mne/mne_load_coil_def.m
8,714
utf_8
27f6f7c6a6d28610885a9c1be788e73a
function [CoilDef,Header] = mne_load_coil_def(fname); % % % [CoilDef,Header] = mne_load_coil_def(fname); % CoilDef = mne_load_coil_def(fname); % % If file name is not specified, the standard coil definition file % $MNE_ROOT/setup/mne/coil_def.dat or $MNE_ROOT/share/mne/coil_def.dat is read % % The co...
github
lcnhappe/happe-master
fiff_find_evoked.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/mne/fiff_find_evoked.m
2,846
utf_8
f7c5e4fd4395754f0e87d3fe6e984d62
function [data_sets] = fiff_find_evoked(fname) % % [data_sets] = fiff_find_evoked(fname) % % Find all evoked data sets in a fif file and create a list of descriptors % % % Author : Matti Hamalainen, MGH Martinos Center % License : BSD 3-clause % global FIFF; if isempty(FIFF) FIFF = fiff_define_constants(); e...
github
lcnhappe/happe-master
load_dicom_series.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/freesurfer/load_dicom_series.m
3,258
utf_8
b4de6c347c9d4453d512c9f0b5cfa58a
function [vol, M, tmpdcminfo, mr_parms] = load_dicom_series(seriesno,dcmdir,dcmfile) % [vol, M, dcminfo] = load_dicom_series(seriesno,<dcmdir>,<dcmfile>) % % Reads in a dicom series given: % 1. The series number and directory, or % 2. A dicom file from the desired series % % If the series number is given but no dcmdi...
github
lcnhappe/happe-master
load_dicom_fl.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/freesurfer/load_dicom_fl.m
5,504
utf_8
a1b99a4d200049ebdb809c0b684b98a1
function [vol, M, dcminfo, mr_parms] = load_dicom_fl(flist) % [vol, M, dcminfo, mr_parms] = load_dicom_fl(flist) % % Loads a volume from the dicom files in flist. % % The volume dimensions are arranged such that the % readout dimension is first, followed by the phase-encode, % followed by the slices (this is not implem...
github
lcnhappe/happe-master
tukeywin.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/tukeywin.m
2,102
utf_8
92cee22ee44a0bf1650a07edd3ef943a
% Copyright (C) 2007 Laurent Mazet <mazet@crm.mot.com> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. % % This progra...
github
lcnhappe/happe-master
rectwin.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/rectwin.m
990
utf_8
6fcae9032382b3785fa1a5fc7d35d0bd
% Copyright (C) 2007 Sylvain Pelissier <sylvain.pelissier@gmail.com> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. %...
github
lcnhappe/happe-master
triang.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/triang.m
2,254
utf_8
922302c6c872d9c51d61c97a76761328
% Copyright (C) 2000-2002 Paul Kienzle <pkienzle@users.sf.net> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. % % Thi...
github
lcnhappe/happe-master
bohmanwin.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/bohmanwin.m
1,381
utf_8
b837d6f243c8cd46b91ac9846a12da56
% Copyright (C) 2007 Sylvain Pelissier <sylvain.pelissier@gmail.com> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. %...
github
lcnhappe/happe-master
hanning.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/hanning.m
1,970
utf_8
78215b654e6e105faa447902fa6cc81c
function [tap] = hanning(n, str) %HANNING Hanning window. % HANNING(N) returns the N-point symmetric Hanning window in a column % vector. Note that the first and last zero-weighted window samples % are not included. % % HANNING(N,'symmetric') returns the same result as HANNING(N). % % HANNING(N,'periodic'...
github
lcnhappe/happe-master
filtfilt.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/filtfilt.m
3,297
iso_8859_1
d01a26a827bc3379f05bbc57f46ac0a9
% Copyright (C) 1999 Paul Kienzle % Copyright (C) 2007 Francesco Potortì % Copyright (C) 2008 Luca Citi % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (a...
github
lcnhappe/happe-master
nuttallwin.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/nuttallwin.m
1,316
utf_8
2a8b412e307f23d07700757c675abcc1
% Copyright (C) 2007 Sylvain Pelissier <sylvain.pelissier@gmail.com> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. %...
github
lcnhappe/happe-master
hann.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/hann.m
66
utf_8
779d38839745c5c57530f4c470cc1352
% w = hann(n) % see hanning function w = hann(n), w=hanning(n);
github
lcnhappe/happe-master
kaiser.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/kaiser.m
1,745
utf_8
bae51aff1f9eb7c65b82a58fb3049d34
% Copyright (C) 1995, 1996, 1997 Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> % Copyright (C) 2000 Paul Kienzle <pkienzle@users.sf.net> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either vers...
github
lcnhappe/happe-master
window.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/window.m
1,240
utf_8
a1ed726ea9ff030e26b60e47cd280d12
% Copyright (C) 2008 David Bateman % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. % % This program is distributed in...
github
lcnhappe/happe-master
blackmanharris.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/blackmanharris.m
1,188
utf_8
58ad36fc97b524266d6a9db98fb6e6ee
% Copyright (C) 2007 Sylvain Pelissier <sylvain.pelissier@gmail.com> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. %...
github
lcnhappe/happe-master
butter.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/butter.m
3,578
utf_8
696de0a27da88cbdd29b04aed067dbce
% Copyright (C) 1999 Paul Kienzle % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in t...
github
lcnhappe/happe-master
parzenwin.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/parzenwin.m
1,301
utf_8
5e0e2262856d9c53bb520b02b54f2653
% Copyright (C) 2007 Sylvain Pelissier <sylvain.pelissier@gmail.com> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. %...
github
lcnhappe/happe-master
gausswin.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/gausswin.m
1,116
utf_8
17daab2749d4ce5c84bb5e676271e8f0
% Copyright (C) 1999 Paul Kienzle <pkienzle@users.sf.net> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. % % This pro...
github
lcnhappe/happe-master
barthannwin.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/barthannwin.m
1,173
utf_8
c90d57c40549a232f05664d193b8cb7a
% Copyright (C) 2007 Sylvain Pelissier <sylvain.pelissier@gmail.com> % % This program is free software; you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free Software % Foundation; either version 3 of the License, or (at your option) any later % version. %...
github
lcnhappe/happe-master
postpad.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/private/postpad.m
2,013
utf_8
2c9539d77ff0f85c9f89108f4dc811e0
% Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2004, 2005, % 2006, 2007, 2008, 2009 John W. Eaton % % This file is part of Octave. % % Octave is free software; you can redistribute it and/or modify it % under the terms of the GNU General Public License as published by % the Free Software Founda...
github
lcnhappe/happe-master
sftrans.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/private/sftrans.m
7,947
utf_8
f64cb2e7d19bcdc6232b39d8a6d70e7c
% Copyright (C) 1999 Paul Kienzle % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in t...
github
lcnhappe/happe-master
bilinear.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/signal/private/bilinear.m
4,339
utf_8
17250db27826cad87fa3384823e1242f
% Copyright (C) 1999 Paul Kienzle % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in t...
github
lcnhappe/happe-master
fns_region_write.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/fns/fns_region_write.m
1,267
utf_8
45ac73e5dd89386923a808a25a65dc99
%% TODO: Need to remove this routine. function fns_region_write(rgnfile,rgn) % % This routine write the region information to the HDF5 file % % rgnfile The output region file. % rgn The region of interest data structure. % @author Hung Dang, July 13, 2010 % Write the description of stored data to the output file hdf...
github
lcnhappe/happe-master
fns_contable_write.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/fns/fns_contable_write.m
2,490
utf_8
3a266284afc0ca72cdb64b914acdf643
function cond = fns_contable_write(varargin) % Creates the default conductivity table % % Use as % cond = fns_contable_write % % The FNS convention for tissue types is the following: % 0 "Clear Label" % 1 "CSF" % 2 "Gray Matter" % 3 "White Matter" % 4 "Fat" % 5 "Muscle"...
github
lcnhappe/happe-master
denoise_energy.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dss/denoise_energy.m
2,548
utf_8
276746592d3b53d810d56acb6c3c952f
function [params, s_new] = denoise_energy(params, s, state) % Energy based DSS denoising function % [params, s_new] = denoise_energy(params, s, state) % params Function specific modifiable parameters % params.usepow ... (default: 1.3) % params.c ... (default: ?) % params.var_noise Initi...
github
lcnhappe/happe-master
denoise_filter.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dss/denoise_filter.m
2,143
utf_8
ae3a9902113a9f9a705cf8295dce183c
function [params, s_new] = denoise_filter(params, s, state) % Generic filter function. Can be used as DSS denoising function. % [params, s_new] = denoise_filter(params, s, state) % params Defines the used filter % params.filter_conv Inpulse response for convolution filter % params.filter_dct Mask ...
github
lcnhappe/happe-master
report_convergence.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dss/report_convergence.m
1,476
utf_8
e97824a6b7f960c982c55b90b63cc8cf
function [report_data] = report_convergence(report_data, state) % Report convergence of the algorithm % Copyright (C) 2004, 2005 DSS MATLAB package team (dss@cis.hut.fi). % Distributed by Laboratory of Computer and Information Science, % Helsinki University of Technology. http://www.cis.hut.fi/projects/dss/. % $Id$ i...
github
lcnhappe/happe-master
denss.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dss/denss.m
3,216
utf_8
6682365eb0d33779435c21332112ad78
function [state, B, A] = denss(X_or_state, parameters) % Main DSS algorithm % [state, B, A] = denss(X or state) % [state, B, A] = denss(X or state, [params]) % [state, B, A] = denss(X or state, {param1, 'value1', param2, 'value2', ...}) % X Mixed signals % state Existing or new algorithm s...
github
lcnhappe/happe-master
default_stop.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dss/default_stop.m
1,441
utf_8
219744b4c15669056f70c9575f12440a
function [stop, params] = default_stop(params, state) % Default stopping criteria function. % [stop, params] = default_stop(params, state) % params Function specific modifiable parameters % params.maxiters Maximum number of allowed iterations % params.epsilon Treshold angle, iteration is stopped when...
github
lcnhappe/happe-master
estimate_mask.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dss/estimate_mask.m
1,695
utf_8
2147549d4388aa7913a35d434f4aa692
function [mask] = estimate_mask(s, filter_params, iterations) % Creates binary mask based on SNR estimate of the signal % [mask] = estimate_mask(s, filter_params, iterations) % s Source signal % filter_params Filter parameters for smoothing variance estimate % iterations Number of iterat...
github
lcnhappe/happe-master
pcamat.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/fastica/pcamat.m
12,028
utf_8
b597f6c30d7c0ad437ab6a408e0cc1fb
function [E, D] = pcamat(vectors, firstEig, lastEig, s_interactive, ... s_verbose); %PCAMAT - Calculates the pca for data % % [E, D] = pcamat(vectors, firstEig, lastEig, ... % interactive, verbose); % % Calculates the PCA matrices for given data (row) vectors. Returns % the eigenvector (E) and diag...
github
lcnhappe/happe-master
icaplot.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/fastica/icaplot.m
13,211
utf_8
066670e2905b35f198920d743c74faf5
function icaplot(mode, varargin); %ICAPLOT - plot signals in various ways % % ICAPLOT is mainly for plottinf and comparing the mixed signals and % separated ica-signals. % % ICAPLOT has many different modes. The first parameter of the function % defines the mode. Other parameters and their order depends on the % mode. ...
github
lcnhappe/happe-master
cond_indep_fisher_z.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMstats/cond_indep_fisher_z.m
3,635
utf_8
74e2c5c915700e2f7a672113e333f813
function [CI, r, p] = cond_indep_fisher_z(X, Y, S, C, N, alpha) % COND_INDEP_FISHER_Z Test if X indep Y given Z using Fisher's Z test % CI = cond_indep_fisher_z(X, Y, S, C, N, alpha) % % C is the covariance (or correlation) matrix % N is the sample size % alpha is the significance level (default: 0.05) % % See p133 of ...
github
lcnhappe/happe-master
logistK.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMstats/logistK.m
7,253
utf_8
9539c8105ebca14d632373f5f9f4b70d
function [beta,post,lli] = logistK(x,y,w,beta) % [beta,post,lli] = logistK(x,y,beta,w) % % k-class logistic regression with optional sample weights % % k = number of classes % n = number of samples % d = dimensionality of samples % % INPUT % x dxn matrix of n input column vectors % y kxn vector of class assignment...
github
lcnhappe/happe-master
dhmm_em.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/hmm/dhmm_em.m
3,862
utf_8
83f088af19f326cf34ba80629cff4d01
function [LL, prior, transmat, obsmat] = dhmm_em(data, prior, transmat, obsmat, varargin) % LEARN_DHMM Find the ML/MAP parameters of an HMM with discrete outputs using EM. % [ll_trace, prior, transmat, obsmat] = learn_dhmm(data, prior0, transmat0, obsmat0, ...) % % Notation: Q(t) = hidden state, Y(t) = observation % %...
github
lcnhappe/happe-master
mhmm_em.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/hmm/mhmm_em.m
5,562
utf_8
5a337291416185ebcf567e46e08a3d09
function [LL, prior, transmat, mu, Sigma, mixmat] = ... mhmm_em(data, prior, transmat, mu, Sigma, mixmat, varargin); % LEARN_MHMM Compute the ML parameters of an HMM with (mixtures of) Gaussians output using EM. % [ll_trace, prior, transmat, mu, sigma, mixmat] = learn_mhmm(data, ... % prior0, transmat0, mu0, sig...
github
lcnhappe/happe-master
subv2ind.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/subv2ind.m
1,574
utf_8
e85d0bab88fc0d35b803436fa1dc0e15
function ndx = subv2ind(siz, subv) % SUBV2IND Like the built-in sub2ind, but the subscripts are given as row vectors. % ind = subv2ind(siz,subv) % % siz can be a row or column vector of size d. % subv should be a collection of N row vectors of size d. % ind will be of size N * 1. % % Example: % subv = [1 1 1; % ...
github
lcnhappe/happe-master
zipload.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/zipload.m
1,611
utf_8
67412c21b14bebb640784443e9e3bbd8
%ZIPLOAD Load compressed data file created with ZIPSAVE % % [data] = zipload( filename ) % filename: string variable that contains the name of the % compressed file (do not include '.zip' extension) % Use only with files created with 'zipsave' % pkzip25.exe has to be in the matlab path. This file is a compression ut...
github
lcnhappe/happe-master
plot_ellipse.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/plot_ellipse.m
507
utf_8
3a27bbd5c1bdfe99983171e96789da6d
% PLOT_ELLIPSE % h=plot_ellipse(x,y,theta,a,b) % % This routine plots an ellipse with centre (x,y), axis lengths a,b % with major axis at an angle of theta radians from the horizontal. % % Author: P. Fieguth % Jan. 98 % %http://ocho.uwaterloo.ca/~pfieguth/Teaching/372/plot_ellipse.m function h=plot_ellipse(x,...
github
lcnhappe/happe-master
conf2mahal.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/conf2mahal.m
2,424
utf_8
682226ca8c1183325f4204e0c22de0a7
% CONF2MAHAL - Translates a confidence interval to a Mahalanobis % distance. Consider a multivariate Gaussian % distribution of the form % % p(x) = 1/sqrt((2 * pi)^d * det(C)) * exp((-1/2) * MD(x, m, inv(C))) % % where MD(x, m, P) is the Mahalanobis distance from x % ...
github
lcnhappe/happe-master
plotgauss2d.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/plotgauss2d.m
970
utf_8
768501b0264c4510e2724b15b5be4e97
function h=plotgauss2d(mu, Sigma, plot_cross) % PLOTGAUSS2D Plot a 2D Gaussian as an ellipse with optional cross hairs % h=plotgauss2(mu, Sigma) % % h=plotgauss2(mu, Sigma, 1) also plots the major and minor axes % % Example % clf; S=[2 1; 1 2]; plotgauss2d([0;0], S, 1); axis equal h = plotcov2(mu, Sigma); return; %%...
github
lcnhappe/happe-master
zipsave.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/zipsave.m
1,480
utf_8
cc543374345b9e369d147c452008bc36
%ZIPSAVE Save data in compressed format % % zipsave( filename, data ) % filename: string variable that contains the name of the resulting % compressed file (do not include '.zip' extension) % pkzip25.exe has to be in the matlab path. This file is a compression utility % made by Pkware, Inc. It can be dowloaded from...
github
lcnhappe/happe-master
matprint.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/matprint.m
1,020
utf_8
e92a96dad0e0b9f25d2fe56280ba6393
% MATPRINT - prints a matrix with specified format string % % Usage: matprint(a, fmt, fid) % % a - Matrix to be printed. % fmt - C style format string to use for each value. % fid - Optional file id. % % Eg. matprint(a,'%3.1f') will print each entry to 1 decimal place ...
github
lcnhappe/happe-master
plotcov3.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/plotcov3.m
4,040
utf_8
1f186acd56002148a3da006a9fc8b6a2
% PLOTCOV3 - Plots a covariance ellipsoid with axes for a trivariate % Gaussian distribution. % % Usage: % [h, s] = plotcov3(mu, Sigma[, OPTIONS]); % % Inputs: % mu - a 3 x 1 vector giving the mean of the distribution. % Sigma - a 3 x 3 symmetric positive semi-definite matrix giving % the...
github
lcnhappe/happe-master
exportfig.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/exportfig.m
30,663
utf_8
838a8ee93ca6a9b6a85a90fa68976617
function varargout = exportfig(varargin) %EXPORTFIG Export a figure. % EXPORTFIG(H, FILENAME) writes the figure H to FILENAME. H is % a figure handle and FILENAME is a string that specifies the % name of the output file. % % EXPORTFIG(H, FILENAME, OPTIONS) writes the figure H to FILENAME % with options init...
github
lcnhappe/happe-master
plotcov2.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/plotcov2.m
3,013
utf_8
4305f11ba0280ef8ebcad4c8a4c4013c
% PLOTCOV2 - Plots a covariance ellipse with major and minor axes % for a bivariate Gaussian distribution. % % Usage: % h = plotcov2(mu, Sigma[, OPTIONS]); % % Inputs: % mu - a 2 x 1 vector giving the mean of the distribution. % Sigma - a 2 x 2 symmetric positive semi-definite matrix giving % ...
github
lcnhappe/happe-master
ind2subv.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/ind2subv.m
1,206
utf_8
5c2e8689803ece8fca091e60c913809d
function sub = ind2subv(siz, ndx) % IND2SUBV Like the built-in ind2sub, but returns the answer as a row vector. % sub = ind2subv(siz, ndx) % % siz and ndx can be row or column vectors. % sub will be of size length(ndx) * length(siz). % % Example % ind2subv([2 2 2], 1:8) returns % [1 1 1 % 2 1 1 % ... % 2 2 2] % ...
github
lcnhappe/happe-master
process_options.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/process_options.m
4,385
utf_8
bb0450331cd2e6af72679b642ca38e24
% PROCESS_OPTIONS - Processes options passed to a Matlab function. % This function provides a simple means of % parsing attribute-value options. Each option is % named by a unique string and is given a default % value. % % Usage: [var1, var2, ......
github
lcnhappe/happe-master
nonmaxsup.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/murphy/KPMtools/nonmaxsup.m
1,708
utf_8
ad451680a9d414f907da2969e0809c22
% NONMAXSUP - Non-maximal Suppression % % Usage: cim = nonmaxsup(im, radius) % % Arguments: % im - image to be processed. % radius - radius of region considered in non-maximal % suppression (optional). Typical values to use might % be 1-3. Default i...
github
lcnhappe/happe-master
laplacedegenerate_ep.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/bayesianlogreg/laplacedegenerate_ep.m
18,982
utf_8
f7c41d02425138606269031927275e33
function [Gauss,terms,logp,comptime] = laplacedegenerate_ep(y,X,K,varargin) % specialized version of our fast variant of % Expectation Propagation for Logistic Regression (2 classes) with a (correlated) Laplace prior % in the degenerate case, i.e., when the number of features >> number of samples % (also works when n...
github
lcnhappe/happe-master
bayesianlinreg_ep.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/bayesianlogreg/bayesianlinreg_ep.m
17,556
utf_8
64edf12e5451aa53b2d6ab3ff064778f
function [Gauss,terms,logp,comptime] = bayesianlinreg_ep(labels,examples,K,varargin) % Bayesian linear regression with a multivariate Laplace prior using a fast % variant of EP. %HERE % input: % labels = an N x 1 vector of class labels [1,2] % examples = an N x M matrix of input data % K = the prior precis...
github
lcnhappe/happe-master
LinRegLaplaceEP.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/bayesianlogreg/LinRegLaplaceEP.m
16,909
utf_8
1182837ca7d49d2ab0cd9588f826fffb
function [Gauss,terms,logp,EP_ERR,logphist] = LinRegLaplaceEP(y,X,K,sig2,varargin) % specialized version of our fast variant of % Expectation Propagation for Logistic Regression (2 classes) with a (correlated) Laplace prior % in the degenerate case, i.e., when the number of features >> number of samples % (also works ...