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
lik_probit.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_probit.m
11,048
UNKNOWN
5ab0288a472ad19a923d50739c297a64
function lik = lik_probit(varargin) %LIK_PROBIT Create a Probit likelihood structure % % Description % LIK = LIK_PROBIT creates Probit likelihood for classification % problem with class labels {-1,1}. % % The likelihood is defined as follows: % __ n % p(y|f, z) = || i=1 normcdf(y_i *...
github
lcnhappe/happe-master
lik_negbin.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_negbin.m
25,046
utf_8
a4815ddb29de3291580a7b2ecc130906
function lik = lik_negbin(varargin) %LIK_NEGBIN Create a Negative-binomial likelihood structure % % Description % LIK = LIK_NEGBIN('PARAM1',VALUE1,'PARAM2,VALUE2,...) % creates Negative-binomial likelihood structure in which the % named parameters have the specified values. Any unspecified % parameters ...
github
lcnhappe/happe-master
gpcf_cat.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_cat.m
11,705
UNKNOWN
78197ff0860b39f108847aa8abae1847
function gpcf = gpcf_cat(varargin) %GPCF_CAT Create a categorical covariance function % % Description % GPCF = GPCF_CAT('PARAM1',VALUE1,'PARAM2,VALUE2,...) % creates a categorical covariance function structure in % which the named parameters have the specified values. Any % unspecified parameters are set...
github
lcnhappe/happe-master
gp_install.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gp_install.m
14,808
utf_8
f3429c304b3ddc097046417323d93093
function gp_install(suiteSparse) % Matlab function to compile all the c-files to mex in the GPstuff/gp % folder. The function is called from GPstuff/matlab_install.m but % can be run separately also. % % If you want to use GPstuff without compactly supported (CS) % covariance functions run as gp_install([]). If y...
github
lcnhappe/happe-master
lik_poisson.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_poisson.m
17,766
utf_8
9883c930a03527bfc0126d7e930f2a82
function lik = lik_poisson(varargin) %LIK_POISSON Create a Poisson likelihood structure % % Description % LIK = LIK_POISSON creates Poisson likelihood structure % % The likelihood is defined as follows: % __ n % p(y|f, z) = || i=1 Poisson(y_i|z_i*exp(f_i)) % % where z is a vector of...
github
lcnhappe/happe-master
gpcf_mask.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_mask.m
11,666
UNKNOWN
aac6a91c7e0fd4518d918b34507b986c
function gpcf = gpcf_mask(varargin) %GPCF_MASK Create a mask covariance function % % Description % GPCF = GPCF_MASK('PARAM1',VALUE1,'PARAM2,VALUE2,...) % creates a mask covariance function structure in % which the named parameters have the specified values. Any % unspecified parameters are set to default...
github
lcnhappe/happe-master
gp_e.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gp_e.m
19,648
utf_8
3ec15c96030544b6ae806bdd136d7b29
function [e, edata, eprior] = gp_e(w, gp, x, y, varargin) %GP_E Evaluate the energy function (un-normalized negative % log marginal posterior) % % Description % E = GP_E(W, GP, X, Y, OPTIONS) takes a Gaussian process % structure GP together with a matrix X of input vectors and a % matrix Y of targets, ...
github
lcnhappe/happe-master
lik_multinom.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_multinom.m
10,705
UNKNOWN
e987daaabebb5e9ffcb11120d36bb4f4
function lik = lik_multinom(varargin) %LIK_MULTINOM Create a multinom likelihood structure % % Description % LIK = LIK_MULTINOM creates multinom likelihood for multi-class % count data. The observed numbers in each class with C classes is given % as 1xC vector. % % The likelihood is defined as follows:...
github
lcnhappe/happe-master
lik_binomial.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_binomial.m
18,897
UNKNOWN
a57c5a78ab9b3f5404f6da03ff6f88c6
function lik = lik_binomial(varargin) %LIK_BINOMIAL Create a Binomial likelihood structure % % Description % LIK = LIK_BINOMIAL creates Binomial likelihood structure. % % The likelihood is defined as follows: % __ n % p(y|f, z) = || i=1 [ p_i^(y_i)*(1-p_i)^(z_i-y_i)) * % ...
github
lcnhappe/happe-master
lik_loglogistic.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_loglogistic.m
23,851
utf_8
488337e3c0403b611d2cf1246ceb8658
function lik = lik_loglogistic(varargin) %LIK_LOGLOGISTIC Create a right censored log-logistic likelihood structure % % Description % LIK = LIK_LOGLOGISTIC('PARAM1',VALUE1,'PARAM2,VALUE2,...) % creates a likelihood structure for right censored log-logistic % survival model in which the named parameters have...
github
lcnhappe/happe-master
gpcf_sexp.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_sexp.m
39,532
utf_8
0ef6e85965ae3b707bb5d1d78df49bd4
function gpcf = gpcf_sexp(varargin) %GPCF_SEXP Create a squared exponential covariance function % % Description % GPCF = GPCF_SEXP('PARAM1',VALUE1,'PARAM2,VALUE2,...) creates % squared exponential covariance function structure in which the % named parameters have the specified values. Any unspecified % pa...
github
lcnhappe/happe-master
gpcf_prod.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_prod.m
15,801
utf_8
bdd8dde16beff8dd6249f6ff7f82aeaa
function gpcf = gpcf_prod(varargin) %GPCF_PROD Create a product form covariance function % % Description % GPCF = GPCF_PROD('cf', {GPCF_1, GPCF_2, ...}) % creates a product form covariance function % GPCF = GPCF_1 .* GPCF_2 .* ... .* GPCF_N % % See also % GP_SET, GPCF_* % Copyright (c) 2009-201...
github
lcnhappe/happe-master
scaled_mh.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/scaled_mh.m
10,266
utf_8
1563f9eb51b7be715e98686a4c44a6fd
function [f, energ, diagn] = scaled_mh(f, opt, gp, x, y, z) %SCALED_MH A scaled Metropolis-Hastings sampling for latent values % % Description % [F, ENERG, DIAG] = SCALED_MH(F, OPT, GP, X, Y) takes the % current latent values F, options structure OPT, Gaussian % process structure GP, inputs X and outputs Y. ...
github
lcnhappe/happe-master
lik_lgp.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_lgp.m
15,167
windows_1250
7b7a6270ae79e34121ec3ef3091f6b59
function lik = lik_lgp(varargin) %LIK_LGP Create a logistic Gaussian process likelihood structure % % Description % LIK = LIK_LGP creates a logistic Gaussian process likelihood structure % % The likelihood is defined as follows: % __ n % p(y|f) = || i=1 exp(f_i) / Sum_{j=1}^n exp(f_j), % % ...
github
lcnhappe/happe-master
gpmf_squared.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpmf_squared.m
8,746
utf_8
fcd6e5e58eb18041d7c0f1fb70a152c0
function gpmf = gpmf_squared(varargin) %GPMF_SQUARED Create a squared mean function % % Description % GPMF = GPMF_SQUARED('PARAM1',VALUE1,'PARAM2,VALUE2,...) % creates linear mean function structure in which the named % parameters have the specified values. Any unspecified % parameters are set to defaul...
github
lcnhappe/happe-master
gpmf_linear.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpmf_linear.m
7,746
utf_8
093d9284e00323d01f6ed94a25f6947a
function gpmf = gpmf_linear(varargin) %GPMF_LINEAR Create a linear mean function % % Description % GPMF = GPMF_LINEAR('PARAM1',VALUE1,'PARAM2,VALUE2,...) % creates linear mean function structure in which the named % parameters have the specified values. Any unspecified % parameters are set to default val...
github
lcnhappe/happe-master
gpcf_matern52.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_matern52.m
28,809
utf_8
1086d8b7cac3a06976c064521dc35ad8
function gpcf = gpcf_matern52(varargin) %GPCF_MATERN52 Create a Matern nu=5/2 covariance function % % Description % GPCF = GPCF_MATERN52('PARAM1',VALUE1,'PARAM2,VALUE2,...) % creates Matern nu=5/2 covariance function structure in which % the named parameters have the specified values. Any % unspecified p...
github
lcnhappe/happe-master
gpcf_exp.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_exp.m
27,016
utf_8
e1b8f5e6efd82d342321a33398df19b1
function gpcf = gpcf_exp(varargin) %GPCF_EXP Create an exponential covariance function % % Description % GPCF = GPCF_EXP('PARAM1',VALUE1,'PARAM2,VALUE2,...) creates a % exponential covariance function structure in which the named % parameters have the specified values. Any unspecified % parameters are set...
github
lcnhappe/happe-master
SuiteSparse_install.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/SuiteSparse_install.m
11,112
utf_8
fb32defab8ad43d072b65d41d20fb41f
function paths = SuiteSparse_install (do_demo) %SuiteSparse_install: compiles and installs all of SuiteSparse % A Suite of Sparse matrix packages, authored or co-authored by Tim Davis, Univ. % Florida. You must be in the same directory as SuiteSparse_install to use this. % % Packages in SuiteSparse: % % UMFPACK ...
github
lcnhappe/happe-master
colamd_test.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/COLAMD/MATLAB/colamd_test.m
11,715
utf_8
67855282bea237b3f5e5aaead650f90e
function colamd_test %COLAMD_TEST test colamd2 and symamd2 % Example: % colamd_test % % COLAMD and SYMAMD testing function. Here we try to give colamd2 and symamd2 % every possible type of matrix and erroneous input that they may encounter. % We want either a valid permutation returned or we want them to fail % gra...
github
lcnhappe/happe-master
ccolamd_test.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CCOLAMD/MATLAB/ccolamd_test.m
11,803
utf_8
2cf7c488966fe7d5987b4062e6f6a1ca
function ccolamd_test %CCOLAMD_TEST extensive test of ccolamd and csymamd % % Example: % ccolamd_test % % See also csymamd, ccolamd, ccolamd_make. % Copyright 1998-2007, Timothy A. Davis, Stefan Larimore, and Siva Rajamanickam % Developed in collaboration with J. Gilbert and E. Ng. help ccolamd_test global ccolamd...
github
lcnhappe/happe-master
klu_make.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/KLU/MATLAB/klu_make.m
10,922
utf_8
e85d62511e714298f5a2601c105ef2fe
function klu_make (with_cholmod) %KLU_MAKE compiles the KLU mexFunctions % % Example: % klu_make % compiles KLU without CHOLMOD % klu_make (1) % with CHOLMOD, CAMD, CCOLAMD, and METIS % % KLU relies on AMD, COLAMD, and BTF for its ordering options, and can % optionally use CHOLMOD, CCOLAMD, CAMD, ...
github
lcnhappe/happe-master
cs_install.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CSparse/MATLAB/cs_install.m
1,729
utf_8
698e3a7be8710df4bca038a373f4850f
function cs_install (do_pause) %CS_INSTALL: compile and install CSparse for use in MATLAB. % Your current working directory must be CSparse/MATLAB in order to use this % function. % % The directories % % CSparse/MATLAB/CSparse % CSparse/MATLAB/Demo % CSparse/MATLAB/UFget % % are added to yo...
github
lcnhappe/happe-master
cs_make.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CSparse/MATLAB/CSparse/cs_make.m
6,443
utf_8
db813bf30398d17dfe66ed1f938ee591
function [objfiles, timestamp_out] = cs_make (f) %CS_MAKE compiles CSparse for use in MATLAB. % Usage: % cs_make % [objfiles, timestamp] = cs_make (f) % % With no input arguments, or with f=0, only those files needing to be % compiled are compiled (like the Unix/Linux/GNU "make" command, but not % r...
github
lcnhappe/happe-master
mynormest1.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CSparse/MATLAB/Test/mynormest1.m
1,843
utf_8
0f6e7b3dd575c4dbfa809e784838035e
function est = mynormest1 (L, U, P, Q) %MYNORMEST1 estimate norm(A,1), using LU factorization (L*U = P*A*Q). % % Example: % est = mynormest1 (L, U, P, Q) % See also: testall % Copyright 2006-2007, Timothy A. Davis. % http://www.cise.ufl.edu/research/sparse n = size (L,1) ; est = 0 ; S = zeros (n,1) ; for k = ...
github
lcnhappe/happe-master
testall.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CSparse/MATLAB/Test/testall.m
1,517
utf_8
221311b233cabd5b041462eeed288254
function testall %TESTALL test all CSparse functions (run tests 1 to 28 below) % % Example: % testall % See also: cs_demo % Copyright 2006-2007, Timothy A. Davis. % http://www.cise.ufl.edu/research/sparse h = waitbar (0, 'CSparse') ; cs_test_make % compile all CSparse, Demo, Text, and Test mexFunctions ...
github
lcnhappe/happe-master
umfpack_report.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/UMFPACK/MATLAB/umfpack_report.m
16,015
utf_8
ab2ab9204411376267d5931f57b6b59b
function umfpack_report (Control, Info) %UMFPACK_REPORT prints optional control settings and statistics % % Example: % umfpack_report (Control, Info) ; % % Prints the current Control settings for umfpack2, and the statistical % information returned by umfpack2 in the Info array. If Control is % an empty matrix...
github
lcnhappe/happe-master
umfpack_make.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/UMFPACK/MATLAB/umfpack_make.m
12,201
utf_8
c47a8208e044186c2dd6795d63bbe158
function umfpack_make (lapack) %UMFPACK_MAKE to compile umfpack2 for use in MATLAB % % Compiles the umfpack2 mexFunction and then runs a simple demo. % % Example: % umfpack_make % use default LAPACK and BLAS % umfpack_make ('lcc_lib/libmwlapack.lib') % for Windows % umfpack_make ...
github
lcnhappe/happe-master
umfpack_btf.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/UMFPACK/MATLAB/umfpack_btf.m
4,651
utf_8
905709090e298d8bfd5e9937181c95b6
function [x, info] = umfpack_btf (A, b, Control) %UMFPACK_BTF factorize A using a block triangular form % % Example: % x = umfpack_btf (A, b, Control) % % solve Ax=b by first permuting the matrix A to block triangular form via dmperm % and then using UMFPACK to factorize each diagonal block. Adjacent 1-by-1 % blocks...
github
lcnhappe/happe-master
cs_install.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CXSparse_newfiles/MATLAB/cs_install.m
1,625
utf_8
7431badf82b77fa1911f89c54dbbb33c
function cs_install (do_pause) %CS_INSTALL: compile and install CXSparse for use in MATLAB. % Your current working directory must be CXSparse/MATLAB in order to use this % function. % % The directories % % CXSparse/MATLAB/CSparse % CXSparse/MATLAB/Demo % CXSparse/MATLAB/UFget % % are added ...
github
lcnhappe/happe-master
camd_demo.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CAMD/MATLAB/camd_demo.m
3,308
utf_8
823dfa42e18c7d2753b7dadb43e5cde2
function camd_demo %CAMD_DEMO a demo of camd, using the can_24 matrix % % A demo of CAMD for MATLAB. % % Example: % camd_demo % % See also: camd, camd_make % Copyright 1994-2007, Tim Davis, University of Florida, % Patrick R. Amestoy, Iain S. Duff, and Yanqing Chen. % This orders the same matrix as the ANSI C demo,...
github
lcnhappe/happe-master
cs_install.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CXSparse/MATLAB/cs_install.m
1,625
utf_8
7431badf82b77fa1911f89c54dbbb33c
function cs_install (do_pause) %CS_INSTALL: compile and install CXSparse for use in MATLAB. % Your current working directory must be CXSparse/MATLAB in order to use this % function. % % The directories % % CXSparse/MATLAB/CSparse % CXSparse/MATLAB/Demo % CXSparse/MATLAB/UFget % % are added ...
github
lcnhappe/happe-master
cholmod_make.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CHOLMOD/MATLAB/cholmod_make.m
10,939
utf_8
1fe1b7470711101787a8e019798fbc53
function cholmod_make (metis_path) %CHOLMOD_MAKE compiles the CHOLMOD mexFunctions % % Example: % cholmod_make % % CHOLMOD relies on AMD and COLAMD, and optionally CCOLAMD, CAMD, and METIS. % All but METIS are distributed with CHOLMOD. To compile CHOLMOD to use METIS % you must first place a copy of the metis-4.0 di...
github
lcnhappe/happe-master
graph_demo.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CHOLMOD/MATLAB/graph_demo.m
2,476
utf_8
d68493e617f06b2d5a601b7cb3b91a33
function graph_demo (n) %GRAPH_DEMO graph partitioning demo % graph_demo(n) constructs an set of n-by-n 2D grids, partitions them, and % plots them in one-second intervals. n is optional; it defaults to 60. % % Example: % graph_demo % % See also DELSQ, NUMGRID, GPLOT, TREEPLOT % Copyright 2006-2007, T...
github
lcnhappe/happe-master
cholmod_demo.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CHOLMOD/MATLAB/cholmod_demo.m
3,684
utf_8
366c6ffc28d9204098b51142c5e72445
function cholmod_demo %CHOLMOD_DEMO a demo for CHOLMOD % % Tests CHOLMOD with various randomly-generated matrices, and the west0479 % matrix distributed with MATLAB. Random matrices are not good test cases, % but they are easily generated. It also compares CHOLMOD and MATLAB on the % sparse matrix problem used in the...
github
lcnhappe/happe-master
test15.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CHOLMOD/MATLAB/Test/test15.m
3,742
utf_8
138acfd9c60538711b73c3f3938a3644
function test15 (nmat) %TEST15 test symbfact2 vs MATLAB % Example: % test15(nmat) % See also cholmod_test % Copyright 2006-2007, Timothy A. Davis, University of Florida fprintf ('=================================================================\n'); index = UFget ; % only test matrices with nrows = 109000 or less...
github
lcnhappe/happe-master
test26.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/CHOLMOD/MATLAB/Test/test26.m
1,919
utf_8
76a21ab29ef4ddc3b64ae785a716c51a
function test26 (do_metis) %TEST26 test logical full and sparse matrices % Example: % test26 % See also cholmod_test % Copyright 2006-2007, Timothy A. Davis, University of Florida fprintf ('=================================================================\n'); fprintf ('test26: test logical full and sparse matrices...
github
lcnhappe/happe-master
meshnd_example.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/MESHND/meshnd_example.m
2,391
utf_8
b73633dae23b3d361785dff0a3577e93
function meshnd_example %MESHND_EXAMPLE example usage of meshnd and meshsparse. % % Example: % meshnd_example % % See also meshnd. % Copyright 2007, Timothy A. Davis, Univ. of Florida help meshnd % 2D mesh, compare with Cleve Moler's demos m = 7 ; n = 7 ; [G p pinv Gnew] = meshnd (m,n) ; fprintf ('Original mesh:...
github
lcnhappe/happe-master
meshnd.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/MESHND/meshnd.m
3,103
utf_8
f852a9aec88b5fcf8d39f1afe5d6eb25
function [G, p, pinv, Gnew] = meshnd (arg1,n,k) %MESHND creation and nested dissection of a regular 2D or 3D mesh. % [G p pinv Gnew] = meshnd (m,n) constructs an m-by-n 2D mesh G, and then finds % a permuted mesh Gnew where Gnew = pinv(G) and G = p(Gnew). meshnd(m,n,k) % creates an m-by-n-by-k 3D mesh. % % [G p pinv G...
github
lcnhappe/happe-master
ssmult_install.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/SSMULT/ssmult_install.m
6,256
utf_8
ca7bbd625a43cfd1c3cec4e2980ff27c
function ssmult_install (dotests) %SSMULT_INSTALL compiles, installs, and tests ssmult. % Note that the "lcc" compiler provided with MATLAB for Windows can generate % slow code; use another compiler if possible. Your current directory must be % SSMULT for ssmult_install to work properly. If you use Linux/Unix/Mac, I ...
github
lcnhappe/happe-master
pagerankdemo.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/MATLAB_Tools/pagerankdemo.m
6,301
utf_8
2a933a39d67b7f916bc79b747055d403
function pagerankdemo (steps) % PAGERANKDEMO draw a 6-node web and compute its pagerank % % PAGERANKDEMO draws the 6-node "tiny web" in Section 2.11 of "Numerical % Computing with MATLAB", by Cleve Moler, SIAM, 2004. It then simulates the % computation of Google's PageRank algorithm, by randomly selecting links to % t...
github
lcnhappe/happe-master
gipper.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/MATLAB_Tools/gipper.m
7,444
utf_8
b1e1e96f392196e2afd7ffa43315ff4d
function files_out = gipper (directory, include, exclude, exclude_hidden) %GIPPER zip selected files and subdirectories (gipper = grep + zip) % % files = gipper (directory, include, exclude, exclude_hidden) ; % % Creates a zip file of all files and subdirectories in a directory. A file in % the directory or any of i...
github
lcnhappe/happe-master
shellgui.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/MATLAB_Tools/shellgui/shellgui.m
11,655
utf_8
989265d0d56df9f25461086f5878b569
function varargout = shellgui(varargin) %SHELLGUI GUI interface for seashell function % Timothy A. Davis, Chapman Hall / CRC Press, 7th edition. % Controls the parameters a, b, c, n, azimuth, and elevation, using % sliders. To the whole range of each parameter, click on the button to % the right of each slider...
github
lcnhappe/happe-master
spok_test.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/MATLAB_Tools/spok/spok_test.m
1,896
utf_8
fb75171c79dfb5ddc82c0cd60c48db62
function spok_test %SPOK_TEST installs and tests SPOK % % Example: % spok_install % % See also sparse, spok, spok_install % Copyright 2008, Tim Davis, University of Florida % compile and install spok help spok ; spok_install ; c = pwd ; cd private ; mex spok_invalid.c ; cd (c) ; % test with valid matrices fprintf ...
github
lcnhappe/happe-master
waitex.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/MATLAB_Tools/waitmex/waitex.m
1,047
utf_8
65beaefa68f21bc993f23673d3d2c040
function result = waitex %WAITEX same as the waitexample mexFunction, just in M instead of C. % The only purpose of this function is to serve as a precise description of % what the waitexample mexFunction does. % % Example: % waitex % draw a waitbar, make progress, and then close the waitbar % h = waitex ;...
github
lcnhappe/happe-master
find_components_example.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/MATLAB_Tools/find_components/find_components_example.m
3,897
utf_8
a53a3fbb3ee31c9062389fd2faf0f302
function find_components_example(example) %FIND_COMPONENTS_EXAMPLE gives an example usage of find_components. % % Example: % find_components_example(0) % a small example, with lots of printing % find_components_example(1) % Doug's example, with lots of printing % find_components_example(2) % a large example, j...
github
lcnhappe/happe-master
spqr_make.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/SPQR/MATLAB/spqr_make.m
17,403
utf_8
b2219499a73fd1e89a27ba4c1286be03
function spqr_make (metis_path,opt1,opt2) %SPQR_MAKE compiles the SuiteSparseQR mexFunctions % % Example: % spqr_make % % SuiteSparseQR relies on CHOLMOD, AMD, and COLAMD, and optionally CCOLAMD, % CAMD, and METIS. All but METIS are distributed with CHOLMOD. To compile % SuiteSparseQR to use METIS you must first pl...
github
lcnhappe/happe-master
UFpage.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/UFcollection/UFpage.m
18,515
utf_8
f7bbbbf0f99dcc348d3d968ee195f656
function UFpage (matrix, index, figures) %UFPAGE create web page for a matrix in UF Sparse Matrix Collection % % Usage: % UFpage (matrix, index, figures) % % matrix: id or name of matrix to create the web page for. % index: the UF index, from UFget. % figures: 1 if the figures are to be created, 0 otherwise % % Ex...
github
lcnhappe/happe-master
UFread.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/UFcollection/UFread.m
13,594
utf_8
f661a98aa4deaee771002bd338d97870
function Problem = UFread (directory, tmp) %UFREAD read a Problem in Matrix Market or Rutherford/Boeing format % containing a set of files created by UFwrite, in either Matrix Market or % Rutherford/Boeing format. See UFwrite for a description of the Problem struct. % % Usage: Problem = UFread (directory) % % Example: ...
github
lcnhappe/happe-master
UFwrite.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/SuiteSparse/UFcollection/UFwrite.m
17,757
utf_8
c4256659f09dc533119bcaa94146d846
function UFwrite (Problem, Master, arg3, arg4) %UFWRITE write a Problem in Matrix Market or Rutherford/Boeing format % containing a set of text files in either Matrix Market or Rutherford/Boeing % format. The Problem can be read from the files back into MATLAB via UFread. % See http://www.cise.ufl.edu/research/sparse/...
github
lcnhappe/happe-master
isLegal.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/minFunc/isLegal.m
111
utf_8
201b5c177a5a05ba3a3322077c1acae1
function [legal] = isLegal(v) legal = sum(any(imag(v(:))))==0 & sum(isnan(v(:)))==0 & sum(isinf(v(:)))==0; end
github
lcnhappe/happe-master
WolfeLineSearch.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/minFunc/WolfeLineSearch.m
11,132
utf_8
bbe46a7fa9b05110d6c9f2ecba335fd1
function [t,f_new,g_new,funEvals,H] = WolfeLineSearch(... x,t,d,f,g,gtd,c1,c2,LS,maxLS,tolX,debug,doPlot,saveHessianComp,funObj,varargin) % % Bracketing Line Search to Satisfy Wolfe Conditions % % Inputs: % x: starting location % t: initial step size % d: descent direction % f: function value at starting lo...
github
lcnhappe/happe-master
minFunc_processInputOptions.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dmlt/external/minFunc/minFunc_processInputOptions.m
3,252
utf_8
72f66f58081120213a4f63f1bb4f42df
function [verbose,verboseI,debug,doPlot,maxFunEvals,maxIter,tolFun,tolX,method,... corrections,c1,c2,LS_init,LS,cgSolve,SR1,cgUpdate,initialHessType,... HessianModify,Fref,useComplex,numDiff,LS_saveHessianComp,... DerivativeCheck,Damped,HvFunc,bbType,cycle,boundStepLength,... HessianIter,outputFcn] = ....
github
lcnhappe/happe-master
betapdf.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/stats/betapdf.m
4,091
utf_8
22972826a645e022df6b35f62bc7c557
% Copyright (C) 2012 Rik Wehbring % Copyright (C) 1995-2012 Kurt Hornik % Copyright (C) 2010 Christos Dimitrakakis % % 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 Foundation; ei...
github
lcnhappe/happe-master
nansum.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/stats/nansum.m
194
utf_8
d26aaa8d5695a2cd15c51e72c3d4a186
% NANSUM provides a replacement for MATLAB's nanmean. % % For usage see SUM. function y = nansum(x, dim) x(isnan(x)) = 0; if nargin==1 y = sum(x); else y = sum(x,dim); end end % function
github
lcnhappe/happe-master
betacdf.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/stats/betacdf.m
2,801
utf_8
e1af8d1223714ddeef6f5d873bf36c57
% Copyright (C) 2012 Rik Wehbring % Copyright (C) 1995-2012 Kurt Hornik % % 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 Foundation; either version 3 of the License, or (at % you...
github
lcnhappe/happe-master
nanstd.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/stats/nanstd.m
248
utf_8
fa0dc38960ab4c502a685ee11ebb3328
% NANSTD provides a replacement for MATLAB's nanstd that is almost % compatible. % % For usage see STD. Note that the three-argument call with FLAG is not % supported. function Y = nanstd(varargin) Y = sqrt(nanvar(varargin{:})); end % function
github
lcnhappe/happe-master
finv.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/stats/finv.m
1,923
utf_8
fd552f83d58acd399ecde455a11523d0
% Copyright (C) 2012 Rik Wehbring % Copyright (C) 1995-2012 Kurt Hornik % % 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 Foundation; either version 3 of the License, or (at % you...
github
lcnhappe/happe-master
nanmean.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/stats/nanmean.m
245
utf_8
8ab56ab826c1e69fd89a8937baae4bf0
% NANMEAN provides a replacement for MATLAB's nanmean. % % For usage see MEAN. function y = nanmean(x, dim) if nargin<2 N = sum(~isnan(x)); y = nansum(x) ./ N; else N = sum(~isnan(x), dim); y = nansum(x, dim) ./ N; end end % function
github
lcnhappe/happe-master
tinv.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/stats/tinv.m
7,513
utf_8
8aca90435b847d43ade0cd829db21624
function x = tinv(p,v); % TINV Inverse of Student's T cumulative distribution function (cdf). % X=TINV(P,V) returns the inverse of Student's T cdf with V degrees % of freedom, at the values in P. % % The size of X is the common size of P and V. A scalar input % functions as a constant matrix of the same s...
github
lcnhappe/happe-master
betainv.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/stats/betainv.m
2,699
utf_8
105a6134b0eb25f2c863062d582e2040
% Copyright (C) 2012 Rik Wehbring % Copyright (C) 1995-2012 Kurt Hornik % % 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 Foundation; either version 3 of the License, or (at % you...
github
lcnhappe/happe-master
arrow.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/fileexchange/arrow.m
58,340
utf_8
e4ceab5f059e48a1443dff678cf4be7f
function [h,yy,zz] = arrow(varargin) % ARROW Draw a line with an arrowhead. % % ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points % should be vectors of length 2 or 3, or matrices with 2 or 3 % columns), and returns the graphics handle of the arrow(s). % % ARROW uses the mouse (cl...
github
lcnhappe/happe-master
icp.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/fileexchange/icp.m
19,293
utf_8
344fc5e77eb0c82e12ab2f075f996060
function [TR, TT, ER, t, info] = icp(q,p,varargin) % Perform the Iterative Closest Point algorithm on three dimensional point % clouds. % % [TR, TT] = icp(q,p) returns the rotation matrix TR and translation % vector TT that minimizes the distances from (TR * p + TT) to q. % p is a 3xm matrix and q is a 3xn matrix. % ...
github
lcnhappe/happe-master
DataHash.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/fileexchange/DataHash.m
18,999
utf_8
8e6737cdb54095fc9656428c35490821
function Hash = DataHash(Data, Opt) % DATAHASH - Checksum for Matlab array of any type % This function creates a hash value for an input of any type. The type and % dimensions of the input are considered as default, such that UINT8([0,0]) and % UINT16(0) have different hash values. Nested STRUCTs and CELLs are parsed %...
github
lcnhappe/happe-master
meshresample.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/iso2mesh/meshresample.m
1,665
utf_8
a84fc4c4bfcb7894e079f34b8a9c6f9d
function [node,elem]=meshresample(v,f,keepratio) % % [node,elem]=meshresample(v,f,keepratio) % % resample mesh using CGAL mesh simplification utility % % author: Qianqian Fang (fangq<at> nmr.mgh.harvard.edu) % date: 2007/11/12 % % input: % v: list of nodes % f: list of surface elements (each row for each triangle...
github
lcnhappe/happe-master
savejson.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/iso2mesh/savejson.m
14,306
utf_8
efe098b229009f38be24329e7d8af75d
function json=savejson(rootname,obj,varargin) % % json=savejson(rootname,obj,filename) % or % json=savejson(rootname,obj,opt) % json=savejson(rootname,obj,'param1',value1,'param2',value2,...) % % convert a MATLAB object (cell, struct or array) into a JSON (JavaScript % Object Notation) string % % author: Qianqian Fa...
github
lcnhappe/happe-master
loadjson.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/iso2mesh/loadjson.m
16,225
ibm852
f1745f9ac3fd57bd26f86b59f45cfb39
function data = loadjson(fname,varargin) % % data=loadjson(fname,opt) % or % data=loadjson(fname,'param1',value1,'param2',value2,...) % % parse a JSON (JavaScript Object Notation) file or string % % authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu) % date: 2011/09/09 % Nedialko Krouchev: http:...
github
lcnhappe/happe-master
surfaceclean.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/iso2mesh/surfaceclean.m
1,015
utf_8
7e36bba6243ce6e4c9645e4599663dfe
function f=surfaceclean(f,v) % % f=surfaceclean(f,v) % % remove surface patches that are located inside % the bounding box faces % % author: Qianqian Fang (fangq<at> nmr.mgh.harvard.edu) % date: 2008/04/08 % % input: % v: surface node list, dimension (nn,3) % f: surface face element list, dime...
github
lcnhappe/happe-master
plotsurf.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/iso2mesh/plotsurf.m
3,890
utf_8
cb1cd7f508119c87ac12155d80e72f2d
function hm=plotsurf(node,face,varargin) % % hm=plotsurf(node,face,opt) % % plot 3D surface meshes % % author: Qianqian Fang <fangq at nmr.mgh.harvard.edu> % % input: % node: node coordinates, dimension (nn,3); if node has a % 4th column, it will be used to set the color at each node. % face: tr...
github
lcnhappe/happe-master
readoff.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/iso2mesh/readoff.m
1,446
utf_8
aece4a72343e6bece72b82ced7e8fbe6
function [node,elem]=readoff(fname) % % [node,elem]=readoff(fname) % % read Geomview Object File Format (OFF) % % author: Qianqian Fang (fangq<at> nmr.mgh.harvard.edu) % date: 2008/03/28 % % input: % fname: name of the OFF data file % % output: % node: node coordinates of the mesh % elem: list of elements of t...
github
lcnhappe/happe-master
om_check_vol.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/openmeeg/om_check_vol.m
1,911
utf_8
2ad2a2270818ab0b2323ee1513c5a541
function status = om_check_vol(vol) % OM_CHECK_VOL Check meshes of volume conductor for BEM modeling % [STATUS] = OM_CHECK_VOL(VOL) % % returns 1 if there is a problem with geometry % else returns 0 % % Copyright (C) 2010, Alexandre Gramfort, INRIA % $Id$ % $LastChangedBy: alegra $ % $LastChangedDate: 20...
github
lcnhappe/happe-master
testOpenMEEGeeg.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/openmeeg/testOpenMEEGeeg.m
3,442
utf_8
da3bbd9c98535f6d189d29d80e72d0f0
function testOpenMEEGeeg % TEST testOpenMEEGeeg % Test the computation of an EEG leadfield with OpenMEEG addpath(cd) % Make sure current folder is in the path %% Set the position of the probe dipole pos = [0 0 70]; %% Set the radius and conductivities of each of the compartments % 4 Layers r = [85 88 92 100]; c = ...
github
lcnhappe/happe-master
openmeeg.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/openmeeg/openmeeg.m
4,515
utf_8
0fd160989b8ea14353b3fae3fe6b2d9b
function [vol] = openmeeg(vol, isolated) % OPENMEEG computes a symmetric BEM system matrix % % Use as % [vol] = openmeeg(vol, isolated) % % Attention: the normals of the mesh describing the volume conductor are by % FieldTrip convention pointing outwards (with respect to the mesh center), % whereas OpenMEEG binari...
github
lcnhappe/happe-master
openmeeg_dsm.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/openmeeg/openmeeg_dsm.m
4,055
utf_8
b5927ebd6c389bc30f4183cb25c4499f
function [dsm] = openmeeg_dsm(pos, vol, flag) % OPENMEEG_DSM computes the OpenMEEG DSM matrix % i.e. Right hand side in the potential equation % % Use as % [dsm] = openmeeg_dsm(po, vol, flag) % % flag = 1 non adaptive algorithm: does not try to approximate the % potential in the neighborhodd of the lead...
github
lcnhappe/happe-master
openmeeg_megm.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/openmeeg/openmeeg_megm.m
3,786
utf_8
65f11e114798758fdc4c4b43287f55c1
function [h2mm, s2mm] = openmeeg_megm(pos, vol, sens) % OPENMEEG_MEGM computes the OpenMEEG H2MM and S2MM matrices % i.e. the contribution to MEG from the potential and from the source % % Use as % [h2mm,s2mm] = openmeeg_megm(vol, isolated) % Copyright (C) 2010, Emmanuel Olivi % INRIA Athena Project Te...
github
lcnhappe/happe-master
om_normals.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/openmeeg/om_normals.m
1,572
utf_8
ca0342ba8f9473f946c7df879e4a82c8
function [nrm] = normals(pos, tri, opt) % NORMALS compute the surface normals of a triangular mesh % for each triangle or for each vertex % % Use as % nrm = normals(pos, tri, opt) % where opt is either 'vertex' or 'triangle' % Copyright (C) 2002-2007, Robert Oostenveld if nargin<3 opt='vertex'; elseif (opt(1)=='...
github
lcnhappe/happe-master
normals.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/openmeeg/private/normals.m
2,346
utf_8
fc0a8ff8ded57a42b7f5436338ed6788
function [nrm] = normals(pnt, tri, opt); % NORMALS compute the surface normals of a triangular mesh % for each triangle or for each vertex % % [nrm] = normals(pnt, tri, opt) % where opt is either 'vertex' or 'triangle' % Copyright (C) 2002-2007, Robert Oostenveld % % This file is part of FieldTrip, see http://www.ru....
github
lcnhappe/happe-master
dipoli.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/dipoli/dipoli.m
4,457
utf_8
f2e2fe3dbd61e25b90d68adb9202f375
function [vol] = dipoli(vol, isolated) % DIPOLI computes a BEM system matrix % % Use as % [vol] = dipoli(vol, isolated) % Copyright (C) 2005-2008, Robert Oostenveld % % $Log: dipoli.m,v $ % Revision 1.3 2008/12/24 10:25:41 roboos % cleaned up the dipoli wrapper, replaced the binary by a better one and added a cop...
github
lcnhappe/happe-master
scpopen.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/biosig/private/scpopen.m
57,392
utf_8
efe5be2dea8235810f4b98539abfdbd1
function [HDR]=scpopen(arg1,CHAN,arg4,arg5,arg6) % SCPOPEN reads and writes SCP-ECG files % % SCPOPEN is an auxillary function to SOPEN for % opening of SCP-ECG files for reading ECG waveform data % % Use SOPEN instead of SCPOPEN % % See also: fopen, SOPEN, % $Id$ % (C) 2004,2006,2007,2008 by Alois Schloegl <a...
github
lcnhappe/happe-master
openxml.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/biosig/private/openxml.m
13,850
utf_8
a2522f85226716568c1d40ee7e6666f6
function [HDR]=openxml(arg1,CHAN,arg4,arg5,arg6) % OPENXML reads XML files and tries to extract biosignal data % % This is an auxilary function to SOPEN. % Use SOPEN instead of OPENXML. % % % HDR = openxml(HDR); % % HDR contains the Headerinformation and internal data % % see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE,...
github
lcnhappe/happe-master
matread.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/biosig/private/matread.m
10,217
utf_8
0c42f4955d1ed526f04022f79b06fd87
function [HDR,data,t]=matread(HDR,arg2,idxlist) % MATRREAD Loads (parts of) data stored in Matlab-format % % [HDR,data,timeindex]=matread(HDR,block_number, [startidx, endidx]) % This is the recommended use for Matlab-files generated from ADICHT data % Before using MATREAD, HDR=MATOPEN(filename, 'ADI', ...) must be app...
github
lcnhappe/happe-master
GE_createSPMmat.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/GE_createSPMmat.m
1,480
utf_8
9da4628d724922838247f14727e25722
%%%%%%%%%%%%%%%%%%%%%%%% % % % Write SPM mat file % % % %%%%%%%%%%%%%%%%%%%%%%%% function M = GE_createSPMmat(im_hdr, scandir) % % Put the appropriate translations and rotations to the M matrix % given the information in the image header and the direction of % acquisition % %...
github
lcnhappe/happe-master
NewCs.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/NewCs.m
20,018
utf_8
02f4f3b94b14be6adab8ee52224b2dc3
function [cs] = NewCs(Name, win, p1, p2, p3, p4, p5) % % [cs] = NewCs (Name, Con, P1, P2) % %Purpose: % Create a command structure for passing to TellAfni % % %Input Parameters: % Name: Name of command, see AFNI's README.driver for all possibilities % Example: SET_THRESHOLD % To see a list ...
github
lcnhappe/happe-master
New_HEAD.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/New_HEAD.m
8,432
utf_8
3213a4c8b09f49855cafdf9925e5b3d3
function [err,Info, opt] = New_HEAD (opt) % % [err,Info, Opt] = New_HEAD (Opt) % %Purpose: % A function for the likes of Greg Detre. % It makes the creation of an AFNI dataset % from a 3 or 4 dimensional matrix in matlab a breeze. % % % %Input Parameters: % opt is an options structure with the follow...
github
lcnhappe/happe-master
PeakFinder.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/PeakFinder.m
13,081
utf_8
2f79a40d4194ae7e9ad3a34c87589a80
function [R, e] = PeakFinder(vvec, Opt) %Example: PeakFinder('Resp*.1D'); % or PeakFinder(v) where v is a column vector % if v is a matrix, each column is processed separately. % %clear all but vvec (useful if I run this function as as script) keep('vvec', 'Opt'); e = 0; R = struct([]); if (nargin < 2) Opt = struct();...
github
lcnhappe/happe-master
rgbdectohex.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/rgbdectohex.m
6,032
utf_8
fca22486bef72eb78e71977479b7940b
function [Cs] = rgbdectohex (Mrgb,strg) % % Mode 1: % [Cs] = rgbdectohex (Mrgb,[string]) % Mode 2: % rgbdectohex % % Mode 1: %This function takes as an input the rgb matrix Mrgb (size is Nx3) % where each row represents the rgb gun values of a color. % gun values should be integers between 0 and 255 % ...
github
lcnhappe/happe-master
afni_niml_writesimple.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/afni_niml_writesimple.m
4,503
utf_8
231807f9346f2bfcc56fa5f3eda8ff00
function D=afni_niml_writesimple(S,fn) % writes surface data in a 'simple' struct in NIML format to a file. % % D=AFNI_NIML_WRITESIMPLE(fn,S) writes surface data S to the file FN. % S should be a struct with a field S.data, and optionally S.stats, % S.labels, S.history, S.types, and S.node_indices. % This function ret...
github
lcnhappe/happe-master
zglobb.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/zglobb.m
3,946
utf_8
508195b45ee39c7296447826b75515f4
function [err,ErrMessage, NameList] = zglobb (Identifiers, Opt) % % [err, ErrMessage, List] = zglobb (Identifiers, [Opt]) %or % [List] = zglobb (Identifiers, [Opt]) %Purpose: % returns the list of files specified in Identifiers % % %Input Parameters: % Identifiers is a cellstr identifying which briks to ...
github
lcnhappe/happe-master
afni_niml_parse.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/afni_niml_parse.m
4,013
utf_8
928c1d463779f609cd8549cfec5a0a37
function niml = afni_niml_parse(s) % Simple parsing routine for AFNI NIML datasets % % N=AFNI_NIML_PARSE(S) parses the niml string S and returns a parsed % structure P. % % P can either be an niml element, or a group of niml elements. In the % formder case, P contains a field .data; in the latter, a cell .nodes. % % If...
github
lcnhappe/happe-master
afni_fig_interface.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/afni_fig_interface.m
3,035
utf_8
a6e27aaa75a4fe2aebabe4db5d20acfb
function afni_fig_interface(src, evnt) cf = gcf; figure(src); % evnt ud = get(src,'UserData'); if (isempty(ud) | ~isfield(ud,'axes_lock')), ud = default_ud(); set(src,'UserData',ud); end if ( lower(evnt.Character) == 'l' ), ud.axes_lock = ~ud.axes_lock; set (src,'UserD...
github
lcnhappe/happe-master
TellAfni.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/TellAfni.m
5,472
utf_8
77dce5f5339989af26f3e100da6bcfc3
function [err] = TellAfni (cs, opt) % % [err] = TellAfni (cs, opt) % %Purpose: % Drive AFNI % % %Input Parameters: % cs: An Nx1 vector of communication command structures % It is obtained using NewCs structure % opt: An optional options structure % .QuitOnErr (0/[1]): Return from function if ...
github
lcnhappe/happe-master
zinputdlg.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/zinputdlg.m
16,591
utf_8
63dc0806876466dc33fef8fbdfeb45c5
function Answer=zinputdlg(Prompt, Title, NumLines, DefAns, Resize) % A copy of inputdlg.m , modified to have better looking font settings %ZINPUTDLG Input dialog box. % ANSWER = ZINPUTDLG(PROMPT) creates a modal dialog box that returns user % input for multiple prompts in the cell array ANSWER. PROMPT is a cell % ar...
github
lcnhappe/happe-master
afni_niml_read.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/afni_niml_read.m
2,791
utf_8
3da5cff1cf07ffd470bd42539f8078b9
function [p,s]=afni_niml_read(fn) % simple function to read niml files % % P=AFNI_NIML_READ(FN) reads a file FN and returns a NIML structure P. % [P,S]=AFNI_NIML_READ(FN) also returns the file contents S % % If FN refers to a file in another format than ASCII NIML, an attempt is % made to convert the file to this forma...
github
lcnhappe/happe-master
afni_nel_parse.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/afni_nel_parse.m
1,763
utf_8
62fbd076a3c4430f06f6385abc18b2d8
function [nel] = afni_nel_parse(nellcell) %should really check that this is nel and not ngr ... %assuming we have nel %get the header part cnel = char(nellcell); clear nellcell; ncnel = length(cnel); %break up into head and data expr = '(?<head><(\w+).*?>)(?<data>.*)<'; %usi...
github
lcnhappe/happe-master
afni_niml_print.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/afni_niml_print.m
5,521
utf_8
9dbc69da949e82e64071c668290ac2da
function s=afni_niml_print(p) % takes a NIML data structure and converts it to string representation % % S=AFNI_NIML_PRINT(P) takes an NIML datastructure P and returns a string % representation S. % % This function is more or less the inverse of AFNI_NIML_PARSE. % % The current implementation will take any struct that...
github
lcnhappe/happe-master
CA_EZ_Prep.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/CA_EZ_Prep.m
14,358
utf_8
af87e1ccd31dc096f0a411e877de8dd9
function [MapMPM, MapML, aur] = CA_EZ_Prep() % A function to process a new Eickhoff, Amunts and Zilles CA toolbox % The function creates new versions of AFNI's source files % thd_ttatlas_CA_EZ.c and thd_ttatlas_CA_EZ.h . % The new files created are called thd_ttatlas_CA_EZ-auto.c and thd_ttatlas_CA_EZ-auto.h % must be ...
github
lcnhappe/happe-master
ROIcmap.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/afni/ROIcmap.m
3,688
utf_8
93376acea9697c3dce4c73aea3838d9b
function [M] = ROIcmap(nc,opt) % [M] = ROIcmap([nc],[opt]); % creates a colormap with % no color too close to grayscale, % no two consecutive colors too close % no colors exeedingly close to another in the map % no colors too close to a background color (optional) % nc: number...
github
lcnhappe/happe-master
bemcp_example.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/bemcp/bemcp_example.m
21,663
utf_8
ee954ecd4779bb13a017d139b7a6acb1
function bemcp_example % Simple function to test/demonstrate how the Boundary element functions are % used in combination with Fildtrip/Forwinv routines. % % 1. A model is created as 3 concentric meshed spheres (using FT's % icosahedron routines), % 2. then random electrodes are placed on the upper part of the outer...
github
lcnhappe/happe-master
hcluster.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/hcluster.m
3,513
utf_8
4f1454878c289ef16d6355f9b24353ce
function [P,Z,order]=hcluster(D,link) %function [P,Z,order] = hcluster(D,link) % %PURPOSE % %To perform a hierarchical agglomerative clustering on a distance %matrix. Returns partition vectors for each level of the clustering %hierarchy and information for visualizing the clustering hierarchy %as a dendrogram. % %INPU...
github
lcnhappe/happe-master
cca.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/cca.m
8,088
utf_8
b5659dc842e6c1fde35175caed2d8ea2
function [P] = cca(D, P, epochs, Mdist, alpha0, lambda0) %CCA Projects data vectors using Curvilinear Component Analysis. % % P = cca(D, P, epochs, [Dist], [alpha0], [lambda0]) % % P = cca(D,2,10); % projects the given data to a plane % P = cca(D,pcaproj(D,2),5); % same, but with PCA initialization % P = ...