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 | lcnbeapp/beapp-master | denss.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | default_stop.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | estimate_mask.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | pcamat.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | icaplot.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | cond_indep_fisher_z.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | logistK.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | dhmm_em.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | mhmm_em.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | subv2ind.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | zipload.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | plot_ellipse.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | conf2mahal.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | plotgauss2d.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | zipsave.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | matprint.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | plotcov3.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | exportfig.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | plotcov2.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ind2subv.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | process_options.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | nonmaxsup.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | laplacedegenerate_ep.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | bayesianlinreg_ep.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | LinRegLaplaceEP.m | .m | beapp-master/Packages/eeglab14_1_2b/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 ... |
github | lcnbeapp/beapp-master | elasticlin.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/elasticnet/elasticlin.m | 4,041 | utf_8 | 5795b073168c65dbf9bb3d3425e075f4 | function [beta,beta0,conv] = elasticlin(X,Y,nu,lambda,options,beta,beta0)
% ELASTICLIN Elastic net implementation using coordinate descent,
% particularly suited for sparse high-dimensional models
% X: ninput x nsamples input data
% Y: 1 x nsamples output data
% nu: ninput x 1 weights for L1 penalty
% la... |
github | lcnbeapp/beapp-master | elasticlog.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/elasticnet/elasticlog.m | 4,626 | utf_8 | 1515764e86a85226867842c7a06c18d0 | function [beta,beta0,conv] = elasticlog(X,Y,nu,lambda,options,beta,beta0)
% ELASTICLOG Elastic net implementation using coordinate descent,
% particularly suited for sparse high-dimensional models
% X: ninput x nsamples input data
% Y: 1 x nsamples output data (class labels 0 and 1)
% nu: ninput x 1 weig... |
github | lcnbeapp/beapp-master | bls.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/pls/bls.m | 2,337 | utf_8 | 9e3e3838737dacc7f5b2dace9b43e117 | function [A,B,Ypredict] = bls(X,Y,nhidden,algorithm)
% BLS Bottleneck least squares aka sparse orthogonalized least squares
%
% X: ninput x nsamples input data matrix
% Y: noutput x nsamples output data matrix
% nhidden: dimension of hidden
%
% A: noutput x nhidden weight matrix
% B: ninput x nhidden weight matrix
i... |
github | lcnbeapp/beapp-master | elastic.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/pls/elastic.m | 3,250 | utf_8 | 0a8ac22b23d8aab23f77c4e49a0644a4 | function [beta,beta0] = elastic(X,Y,nu,lambda,options,beta,beta0)
% ELASTICNET Elastic net implementation using coordinate descent,
% particularly suited for sparse high-dimensional models
% X: ninput x nsamples input data
% Y: 1 x nsamples output data
% nu: ninput x 1 weights for L1 penalty
% lambda: ni... |
github | lcnbeapp/beapp-master | opls.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/pls/opls.m | 2,338 | utf_8 | 413ad9957ca8651409ebf4479f96f580 | function [A,B,Ypredict] = opls(X,Y,nhidden,algorithm)
% BLS Bottleneck least squares aka sparse orthogonalized least squares
%
% X: ninput x nsamples input data matrix
% Y: noutput x nsamples output data matrix
% nhidden: dimension of hidden
%
% A: noutput x nhidden weight matrix
% B: ninput x nhidden weight matrix
... |
github | lcnbeapp/beapp-master | dvComp.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/svm/dvComp.m | 1,449 | utf_8 | 935cb0c3970f3d1dbfa2c2a9c2d9d6c6 | function [dv]=dvComp(Xtst,Xtrn,kernel,alphab,varargin)
% Compute the decision values for a kernel classifier
%
% [dv]=dvComp(Xtst,kernel,Xtrn,alphab,...)
%
% dv = K(Xtrn,Xtst)*alphab(1:end-1)+alphab(end)
%
% Inputs:
% Xtst -- [N x d] test set
% Xtrn -- [Ntrn x d] training set
% kernel -- the kernel function *as ... |
github | lcnbeapp/beapp-master | l2svm_cg.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/svm/l2svm_cg.m | 15,343 | utf_8 | 9d8b76e63b49da516da17d4dfcc04574 | function [wb,f,J,obj]=l2svm_cg(K,Y,C,varargin);
% [alphab,f,J]=l2svm(K,Y,C,varargin)
% Quadratic Loss Support Vector machine using a pre-conditioned conjugate
% gradient solver so extends to large input kernels.
%
% J = C(1) w' K w + sum_i max(0 , 1 - y_i ( w'*K_i + b ) ).^2
%
% Inputs:
% K - [NxN] kernel matr... |
github | lcnbeapp/beapp-master | csp.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/svm/csp.m | 6,469 | utf_8 | 17b337166f090c24d162dfc7e010f835 | function [sf,d,Sigmai,Sigmac,SigmaAll]=csp(X,Y,dim,cent,ridge,singThresh)
% Generate spatial filters using CSP
%
% [sf,d,Sigmai,Sigmac,SigmaAll]=csp(X,Y,[dim]);
% N.B. if inputs are singular then d will contain 0 eigenvalues & sf==0
% Inputs:
% X -- n-d data matrix, e.g. [nCh x nSamp x nTrials] data set, OR
% ... |
github | lcnbeapp/beapp-master | whiten.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/svm/whiten.m | 7,608 | utf_8 | 37ffeab940403c215817ba5e7251cfd4 | function [W,D,wX,U,mu,Sigma,alpha]=whiten(X,dim,alpha,centerp,stdp,symp,linMapMx,tol,unitCov,order)
% whiten the input data
%
% [W,D,wX,U,mu,Sigma,alpha]=whiten(X,dim[,alpha,center,stdp,symp,linMapMx,tol,unitCov,order])
%
% Inputs:
% X - n-d input data set
% dim - dim(1)=dimension to whiten
% dim(2:end) ... |
github | lcnbeapp/beapp-master | repop_testcases.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/svm/repop/repop_testcases.m | 11,158 | utf_8 | 79bc2813b0a64a4efbc64e27cf0ef960 | function []=repop_testcases(testType)
%
% This file contains lots of test-cases to test the performance of the repop
% files vs. the matlab built-ins.
%
% N.B. there appears to be a bug in MATLAB when comparing mixed
% complex/real + double/single values in a max/min
%
% Copyright 2006- by Jason D.R. Farquhar (jdr... |
github | lcnbeapp/beapp-master | tprod_testcases.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/svm/tprod/tprod_testcases.m | 17,197 | utf_8 | 26b0e1b54b6867e5d62e8956c84e01bd | function []=tprod_testcases(testCases,debugin)
% This file contains lots of test-cases to test the performance of the tprod
% files vs. the matlab built-ins.
%
%
% Copyright 2006- by Jason D.R. Farquhar (jdrf@zepler.org)
% Permission is granted for anyone to copy, use, or modify this
% software and accompanying do... |
github | lcnbeapp/beapp-master | etprod.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/svm/tprod/etprod.m | 3,882 | utf_8 | 2f529c6b86be54251a59ae7f9db81d98 | function [C,Atp,Btp]=etprod(Cidx,A,Aidx,B,Bidx)
% tprod wrapper to make calls more similar to Einstein Summation Convention
%
% [C,Atp,Btp]=etprod(Cidx,A,Aidx,B,Bidx);
% Wrapper function for tprod to map between Einstein summation
% convetion (ESC) and tprod's numeric calling convention e.g.
% 1) Matrix Matrix product:... |
github | lcnbeapp/beapp-master | covshrinkKPM.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/slda/covshrinkKPM.m | 2,367 | utf_8 | 5dec20c5cd59e71f053003124ae98c46 | function [s, lam] = covshrinkKPM(x, shrinkvar)
% Shrinkage estimate of a covariance matrix, using optimal shrinkage coefficient.
% INPUT:
% x is n*p data matrix
% shrinkvar :
% 0: corshrink (default)
% 1: varshrink
%
% OUTPUT:
% s is the posdef p*p cov matrix
% lam is the shrinkage coefficient
%
% See J. Schaefer an... |
github | lcnbeapp/beapp-master | glmnet.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/glmnet/glmnet.m | 12,230 | utf_8 | 8b349969d0712566867f87fff7e75396 | function fit = glmnet(x, y, family, options)
%--------------------------------------------------------------------------
% glmnet.m: fit an elasticnet model path
%--------------------------------------------------------------------------
%
% DESCRIPTION:
% Fit a regularization path for the elasticnet at a grid of v... |
github | lcnbeapp/beapp-master | glmnetPlot.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/glmnet/glmnetPlot.m | 3,485 | utf_8 | 25bef119d3957074e024d7afafff205f | function glmnetPlot( x, xvar, label )
%--------------------------------------------------------------------------
% glmnetPlot.m: plot coefficients from a "glmnet" object
%--------------------------------------------------------------------------
%
% DESCRIPTION:
% Produces a coefficient profile plot fo the coeffic... |
github | lcnbeapp/beapp-master | glmnetPredict.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/glmnet/glmnetPredict.m | 9,023 | utf_8 | fd2d04fce352a52a0c6616c95fc90bd1 | function result = glmnetPredict(object, type, newx, s)
%--------------------------------------------------------------------------
% glmnetPredict.m: make predictions from a "glmnet" object.
%--------------------------------------------------------------------------
%
% DESCRIPTION:
% Similar to other predict metho... |
github | lcnbeapp/beapp-master | m2kml.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/misc/m2kml.m | 1,807 | utf_8 | 6ab3b7f8f1cac70d62e51ac3b881ffdf | % M2KML Converts GP prediction results to a KML file
%
% Input:
% input_file - Name of the .mat file containing GP results
% cellsize - Size of the cells in meters
% output_file - Name of the output file without the file extension!
% If output is not given the name of the input f... |
github | lcnbeapp/beapp-master | mapcolor2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/misc/mapcolor2.m | 1,973 | utf_8 | 808a8a3bca47cf7634126af39ec9c1a2 |
function map = mapcolor2(A, breaks)
%MAPCOLOR2 Create a blue-gray-red colormap.
% MAPCOLOR2(A, BREAKS), when A is a matrix and BREAKS a vector, returns a
% colormap that can be used as a parameter in COLORMAP function. BREAKS
% has to contain six break values for a 7-class colormap. The break
% values define ... |
github | lcnbeapp/beapp-master | test_regression_sparse1.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_regression_sparse1.m | 2,394 | utf_8 | ed030b7ce8f86b52cfc2037d0c1d216d | function test_suite = test_regression_sparse1
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_REGRESSION_SPARSE1
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test values.
prevstream=setrandstream(0);... |
github | lcnbeapp/beapp-master | test_multiclass.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_multiclass.m | 1,348 | utf_8 | 6de4245c71740a6340e2cd4852cad0e7 | function test_suite = test_multiclass
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_MULTICLASS
initTestSuite;
function testDemo
% Set random number stream so that test failing isn't because randomness.
% Run demo & save test values.
prevstream=setrandstream(0)... |
github | lcnbeapp/beapp-master | test_regression_additive2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_regression_additive2.m | 1,200 | utf_8 | 5cfacab33d356c758648eb98795b4b25 | function test_suite = test_regression_additive2
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_REGRESSION_ADDITIVE2
initTestSuite;
function testDemo
% Set random number stream so that test failing isn't because randomness.
% Run demo & save test values.
prevstream... |
github | lcnbeapp/beapp-master | test_regression_meanf.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_regression_meanf.m | 1,003 | utf_8 | 1ad49d761a9849fba70028e4a0deae3d | function test_suite = test_regression_meanf
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_REGRESSION_MEANF
initTestSuite;
function testDemo
% Set random number stream so that test failing isn't because randomness.
% Run demo & save test values.
prevstream=setrandstream(0... |
github | lcnbeapp/beapp-master | test_regression_ppcs.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_regression_ppcs.m | 1,373 | utf_8 | 7fda1165ed379fa8accab66db375fd9d | function test_suite = test_regression_ppcs
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_REGRESSION_PPCS
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test values.
prevstream=setrandstream(0);
disp... |
github | lcnbeapp/beapp-master | test_spatial1.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_spatial1.m | 1,460 | utf_8 | 51de1c938a75607200183816de226e34 | function test_suite = test_spatial1
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_SPATIAL1
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test values.
prevstream=setrandstream(0);
disp('Running: dem... |
github | lcnbeapp/beapp-master | test_periodic.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_periodic.m | 1,906 | utf_8 | d63046190abe59ab1b11667e35546492 | function test_suite = test_periodic
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_PERIODIC
initTestSuite;
function testDemo
% Set random number stream so that test failing isn't because randomness.
% Run demo & save test values.
prevstream=setrandstream(0);
disp('Running... |
github | lcnbeapp/beapp-master | test_regression_additive1.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_regression_additive1.m | 2,344 | utf_8 | 346daba327586ff75f7c9b113cd9224b | function test_suite = test_regression_additive1
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_REGRESSION_ADDITIVE1
initTestSuite;
function testDemo
% Set random number stream so that test failing isn't because randomness.
% Run demo & save test values.
prevstream=... |
github | lcnbeapp/beapp-master | test_survival_weibull.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_survival_weibull.m | 1,382 | utf_8 | 3b33524a51abd8435e5757f2ce935c4e | function test_suite = test_survival_weibull
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_SURVIVAL_WEIBULL
% Copyright (c) 2011-2012 Ville Tolvanen
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test... |
github | lcnbeapp/beapp-master | test_zinegbin.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_zinegbin.m | 1,120 | utf_8 | d8a5a32418b9e85ce3b6a3de126a3c46 | function test_suite = test_zinegbin
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_ZINEGBIN
% Copyright (c) 2011-2012 Ville Tolvanen
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test values.
prevstr... |
github | lcnbeapp/beapp-master | test_regression_sparse2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_regression_sparse2.m | 1,820 | utf_8 | c3167a5e33d483573669205845efb0b6 | function test_suite = test_regression_sparse2
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_REGRESSION_SPARSE2
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test values.
prevstream=setrandstream(0);
... |
github | lcnbeapp/beapp-master | test_spatial2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_spatial2.m | 1,396 | utf_8 | 82431e99b626dd45f3691e828f9f209b | function test_suite = test_spatial2
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_SPATIAL2
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test values.
prevstream=setrandstream(0);
disp('Running: de... |
github | lcnbeapp/beapp-master | test_regression_hier.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_regression_hier.m | 992 | utf_8 | ed6062874abff9cbf8ae1925856aff6d | function test_suite = test_regression_hier
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_REGRESSION_HIER
initTestSuite;
% Set random number stream so that test failing isn't because randomness.
% Run demo & save test values.
function testDemo
prevstream=setrandstream(0);
... |
github | lcnbeapp/beapp-master | test_neuralnetcov.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_neuralnetcov.m | 1,432 | utf_8 | cf9e6362388bd59b2da5c1760ddf809c | function test_suite = test_neuralnetcov
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_NEURALNETCOV
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test values.
prevstream=setrandstream(0);
disp('Runn... |
github | lcnbeapp/beapp-master | test_multinom.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_multinom.m | 1,082 | utf_8 | f0950b45a324a1f3ca22c5691fac21c3 | function test_suite = test_multinom
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_ZINEGBIN
% Copyright (c) 2011-2012 Ville Tolvanen
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test values.
prevstr... |
github | lcnbeapp/beapp-master | test_regression_robust.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_regression_robust.m | 1,567 | utf_8 | 941d7778d6b1aeaf4b1a7b70a1639d28 | function test_suite = test_regression_robust
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_REGRESSION_ROBUST
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test values.
prevstream=setrandstream(0);
... |
github | lcnbeapp/beapp-master | test_survival_coxph.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/xunit/test_survival_coxph.m | 1,358 | utf_8 | 98ec11c9517f7656fb584f0cf36596e3 | function test_suite = test_survival_coxph
% Run specific demo and save values for comparison.
%
% See also
% TEST_ALL, DEMO_SURVIVAL_COXPH
% Copyright (c) 2011-2012 Ville Tolvanen
initTestSuite;
function testDemo
% Set random number stream so that failing isn't because randomness. Run
% demo & save test val... |
github | lcnbeapp/beapp-master | fminlbfgs.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/optim/fminlbfgs.m | 35,278 | utf_8 | bbb5921f455647a8404163243c3fff60 | function [x,fval,exitflag,output,grad]=fminlbfgs(funfcn,x_init,optim)
%FMINLBFGS finds a local minimum of a function of several variables.
% This optimizer is developed for image registration
% methods with large amounts of unknown variables.
%
% Description
% Optimization methods supported:
% ... |
github | lcnbeapp/beapp-master | prior_gaussian.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_gaussian.m | 3,537 | UNKNOWN | 7a422794084fa6f6e913f9712c2db4c9 | function p = prior_gaussian(varargin)
%PRIOR_GAUSSIAN Gaussian prior structure
%
% Description
% P = PRIOR_GAUSSIAN('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates Gaussian prior structure in which the named
% parameters have the specified values. Any unspecified
% parameters are set to de... |
github | lcnbeapp/beapp-master | kernelp.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/kernelp.m | 1,374 | utf_8 | 3784b6e72d83468627af9252dd902b7c | function [p,xx,sh]=kernelp(x,xx)
%KERNELP 1D Kernel density estimation of data, with automatic kernel width
%
% [P,XX]=KERNELP(X,XX) return density estimates P in points XX,
% given data and optionally ecvaluation points XX. Density
% estimate is based on simple Gaussian kernel density estimate
% where all kernels ... |
github | lcnbeapp/beapp-master | normtrand.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/normtrand.m | 1,912 | utf_8 | 8420418c944aa575ac4f7577538f089d | function result = normtrand(mu,sigma2,left,right)
%NORMTRAND random draws from a normal truncated to (left,right) interval
% ------------------------------------------------------
% USAGE: y = normtrand(mu,sigma2,left,right)
% where: mu = mean (nobs x 1)
% sigma2 = variance (nobs x 1)
% left = left trunc... |
github | lcnbeapp/beapp-master | prior_sqinvunif.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_sqinvunif.m | 1,662 | utf_8 | 91f8f43d06a07b161cdd806273eed21f | function p = prior_sqinvunif(varargin)
%PRIOR_SQINVUNIF Uniform prior structure for the square inverse of the parameter
%
% Description
% P = PRIOR_SQINVUNIF creates uniform prior structure for the
% square inverse of the parameter.
%
% See also
% PRIOR_*
% Copyright (c) 2009 Jarno Vanhatalo
% C... |
github | lcnbeapp/beapp-master | prior_sqinvsinvchi2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_sqinvsinvchi2.m | 4,247 | UNKNOWN | 199059cd0dc523cf6b8df74a02823f7a | function p = prior_sqinvsinvchi2(varargin)
%PRIOR_SQINVSINVCHI2 Scaled-Inv-Chi^2 prior structure
%
% Description
% P = PRIOR_SQINVSINVCHI2('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates Scaled-Inv-Chi^2 prior structure for square inverse of
% the parameter in which the named parameters have the sp... |
github | lcnbeapp/beapp-master | prior_loggaussian.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_loggaussian.m | 3,863 | UNKNOWN | 2d891ad38e859e59dfe99eab9a5a56a7 | function p = prior_loggaussian(varargin)
%PRIOR_LOGGAUSSIAN Log-Gaussian prior structure
%
% Description
% P = PRIOR_LOGGAUSSIAN('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates Log-Gaussian prior structure in which the named
% parameters have the specified values. Any unspecified
% paramet... |
github | lcnbeapp/beapp-master | prior_invgamma.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_invgamma.m | 3,626 | UNKNOWN | 462df219d9ed058f9b45af8042c3da3d | function p = prior_invgamma(varargin)
%PRIOR_INVGAMMA Inverse-gamma prior structure
%
% Description
% P = PRIOR_INVGAMMA('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates Gamma prior structure in which the named parameters
% have the specified values. Any unspecified parameters are set
% to ... |
github | lcnbeapp/beapp-master | prior_t.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_t.m | 5,110 | UNKNOWN | ebeba7f5ea490b60a90e128905d025e4 | function p = prior_t(varargin)
%PRIOR_T Student-t prior structure
%
% Description
% P = PRIOR_T('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates Student's t-distribution prior structure in which the
% named parameters have the specified values. Any unspecified
% parameters are set to defaul... |
github | lcnbeapp/beapp-master | prior_logt.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_logt.m | 4,935 | UNKNOWN | 3155c4ca02354ee7d652c9e8a1006a43 | function p = prior_logt(varargin)
%PRIOR_LOGT Student-t prior structure for the log of the parameter
%
% Description
% P = PRIOR_LOGT('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates for the log of the parameter Student's t-distribution
% prior structure in which the named parameters have the
% ... |
github | lcnbeapp/beapp-master | prior_invt.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_invt.m | 5,044 | UNKNOWN | 4d2a44a16c36b25eda045042b14610c0 | function p = prior_invt(varargin)
%PRIOR_INVT Student-t prior structure for the inverse of the parameter
%
% Description
% P = PRIOR_INVT('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates for the inverse of the parameter Student's
% t-distribution prior structure in which the named parameters
% h... |
github | lcnbeapp/beapp-master | prior_unif.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_unif.m | 1,362 | utf_8 | ee7f2a78b02bbd0395bb5893178d1109 | function p = prior_unif(varargin)
%PRIOR_UNIF Uniform prior structure
%
% Description
% P = PRIOR_UNIF creates uniform prior structure.
%
% See also
% PRIOR_*
% Copyright (c) 2009 Jarno Vanhatalo
% Copyright (c) 2010 Aki Vehtari
% This software is distributed under the GNU General Public
% Li... |
github | lcnbeapp/beapp-master | prior_gamma.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_gamma.m | 3,585 | UNKNOWN | 652a3a22f8107cf4544a0a14fe522194 | function p = prior_gamma(varargin)
%PRIOR_GAMMA Gamma prior structure
%
% Description
% P = PRIOR_GAMMA('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates Gamma prior structure in which the named parameters
% have the specified values. Any unspecified parameters are set
% to default values.
%
% P... |
github | lcnbeapp/beapp-master | prior_loglogunif.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_loglogunif.m | 1,586 | utf_8 | 9e47770e4cbf89b1f959bac5ca3e8630 | function p = prior_loglogunif(varargin)
%PRIOR_LOGLOGUNIF Uniform prior structure for the log-log of the parameter
%
% Description
% P = PRIOR_LOGLOGUNIF creates uniform prior structure for the
% log-log of the parameters.
%
% See also
% PRIOR_*
% Copyright (c) 2009 Jarno Vanhatalo
% Copyright (... |
github | lcnbeapp/beapp-master | prior_sqrtinvt.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_sqrtinvt.m | 5,086 | UNKNOWN | 359760ce484043dc8cbe8620784307a0 | function p = prior_sqrtinvt(varargin)
%PRIOR_SQRTINVT Student-t prior structure for the square root of inverse of the parameter
%
% Description
% P = PRIOR_SQRTINVT('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates for square root of inverse of the parameter Student's
% t-distribution prior structur... |
github | lcnbeapp/beapp-master | prior_sqinvgamma.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_sqinvgamma.m | 4,063 | UNKNOWN | e40fd6ee9ae4d88aaff26182c69a17e9 | function p = prior_sqinvgamma(varargin)
%PRIOR_SQINVGAMMA Gamma prior structure for square inverse of the parameter
%
% Description
% P = PRIOR_SQINVGAMMA('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates Gamma prior structure for square inverse of the
% parameter in which the named parameters have the spe... |
github | lcnbeapp/beapp-master | prior_laplace.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_laplace.m | 3,459 | UNKNOWN | 47b15af8fb5fcf7caa1bbad31be2af42 | function p = prior_laplace(varargin)
%PRIOR_LAPLACE Laplace (double exponential) prior structure
%
% Description
% P = PRIOR_LAPLACE('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates Laplace prior structure in which the named parameters
% have the specified values. Any unspecified parameters are... |
github | lcnbeapp/beapp-master | prior_invunif.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_invunif.m | 1,615 | utf_8 | e974f05998d83ecfb5e7bd348f6d8a8d | function p = prior_invunif(varargin)
%PRIOR_INVUNIF Uniform prior structure for the inverse of the parameter
%
% Description
% P = PRIOR_INVUNIF creates uniform prior structure for the
% inverse of the parameter.
%
% See also
% PRIOR_*
% Copyright (c) 2009 Jarno Vanhatalo
% Copyright (c) 2010,20... |
github | lcnbeapp/beapp-master | prior_sinvchi2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_sinvchi2.m | 3,787 | UNKNOWN | bb36cbc475243c31f51e061847442b18 | function p = prior_sinvchi2(varargin)
%PRIOR_SINVCHI2 Scaled-Inv-Chi^2 prior structure
%
% Description
% P = PRIOR_SINVCHI2('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates Scaled-Inv-Chi^2 prior structure in which the named
% parameters have the specified values. Any unspecified
% parameters are... |
github | lcnbeapp/beapp-master | prior_sqrtt.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/dist/prior_sqrtt.m | 5,015 | UNKNOWN | face07c0efdd74ed6d833079c1bfac18 | function p = prior_sqrtt(varargin)
%PRIOR_SQRTT Student-t prior structure for the square root of the parameter
%
% Description
% P = PRIOR_SQRTT('PARAM1', VALUE1, 'PARAM2', VALUE2, ...)
% creates for the square root of the parameter Student's
% t-distribution prior structure in which the named parame... |
github | lcnbeapp/beapp-master | gradcheck.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/diag/gradcheck.m | 2,489 | utf_8 | 1e4a8a8b0e776eb3b76a4be1c60b649e | function delta = gradcheck(w, func, grad, varargin)
%GRADCHECK Checks a user-defined gradient function using finite differences.
%
% Description
% This function is intended as a utility to check whether a gradient
% calculation has been correctly implemented for a given function.
% GRADCHECK(W, FUNC, GRAD... |
github | lcnbeapp/beapp-master | geyer_icse.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/diag/geyer_icse.m | 1,895 | utf_8 | d1069007aefb5a41440b9e5e98d12a94 | function [t,t1] = geyer_icse(x,maxlag)
% GEYER_ICSE - Compute autocorrelation time tau using Geyer's
% initial convex sequence estimator
%
% C = GEYER_ICSE(X) returns autocorrelation time tau.
% C = GEYER_ICSE(X,MAXLAG) returns autocorrelation time tau with
% MAXLAG . Default MAXLAG = M-1.
%
... |
github | lcnbeapp/beapp-master | ksstat.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/diag/ksstat.m | 3,201 | utf_8 | cb6899b300a0a54054487e9374ea9e89 | function [snks, snkss] = ksstat(varargin)
%KSSTAT Kolmogorov-Smirnov statistics
%
% ks = KSSTAT(X) or
% ks = KSSTAT(X1,X2,...,XJ)
% returns Kolmogorov-Smirnov statistics in form sqrt(N)*K
% where M is number of samples. X is a NxMxJ matrix which
% contains J MCMC simulations of length N, each with
% dimen... |
github | lcnbeapp/beapp-master | hmc2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/mc/hmc2.m | 9,845 | utf_8 | 4a06c9a759a73a727cd280c3d43cf40f | function [samples, energies, diagn] = hmc2(f, x, opt, gradf, varargin)
%HMC2 Hybrid Monte Carlo sampling.
%
% Description
% SAMPLES = HMC2(F, X, OPTIONS, GRADF) uses a hybrid Monte Carlo
% algorithm to sample from the distribution P ~ EXP(-F), where F is the
% first argument to HMC2. The Mark... |
github | lcnbeapp/beapp-master | hmc_nuts.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/mc/hmc_nuts.m | 10,716 | utf_8 | 01197102ae8e357143d8a5cc213d39b4 | function [samples, logp, diagn] = hmc_nuts(f, theta0, opt)
%HMC_NUTS No-U-Turn Sampler (NUTS)
%
% Description
% [SAMPLES, LOGP, DIAGN] = HMC_NUTS(f, theta0, opt)
% Implements the No-U-Turn Sampler (NUTS), specifically,
% algorithm 6 from the NUTS paper (Hoffman & Gelman, 2011). Runs
% opt.Madapt steps of b... |
github | lcnbeapp/beapp-master | sls.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/mc/sls.m | 18,996 | utf_8 | 909e1e12015c1cde6f731f39015ae059 | function [samples,energies,diagn] = sls(f, x, opt, gradf, varargin)
%SLS Markov Chain Monte Carlo sampling using Slice Sampling
%
% Description
% SAMPLES = SLS(F, X, OPTIONS) uses slice sampling to sample
% from the distribution P ~ EXP(-F), where F is the first
% argument to SLS. Markov chain starts fro... |
github | lcnbeapp/beapp-master | metrop2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/mc/metrop2.m | 4,703 | utf_8 | 08184b230c18c07d461096023d9c021a | function [samples, energies, diagn] = metrop2(f, x, opt, gradf, varargin)
%METROP2 Markov Chain Monte Carlo sampling with Metropolis algorithm.
%
% Description
% SAMPLES = METROP(F, X, OPT) uses the Metropolis algorithm to
% sample from the distribution P ~ EXP(-F), where F is the first
% argument to METROP. The Mark... |
github | lcnbeapp/beapp-master | gp_optim.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gp_optim.m | 5,760 | utf_8 | 853821530091611d1616a58b4951a2c7 | function [gp, varargout] = gp_optim(gp, x, y, varargin)
%GP_OPTIM Optimize paramaters of a Gaussian process
%
% Description
% GP = GP_OPTIM(GP, X, Y, OPTIONS) optimises the parameters of a
% GP structure given matrix X of training inputs and vector
% Y of training targets.
%
% [GP, OUTPUT1, OUTPUT2, ...]... |
github | lcnbeapp/beapp-master | gp_mc.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gp_mc.m | 22,688 | utf_8 | 42a2a7d17e9adb7a658a7b89b4390d19 | function [record, gp, opt] = gp_mc(gp, x, y, varargin)
%GP_MC Markov chain Monte Carlo sampling for Gaussian process models
%
% Description
% [RECORD, GP, OPT] = GP_MC(GP, X, Y, OPTIONS) Takes the Gaussian
% process structure GP, inputs X and outputs Y. Returns record
% structure RECORD with parameter samp... |
github | lcnbeapp/beapp-master | gpla_e.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpla_e.m | 90,674 | UNKNOWN | 7f5dc0edae06d00e07815ed9c70bd1e7 | function [e, edata, eprior, f, L, a, La2, p] = gpla_e(w, gp, varargin)
%GPLA_E Do Laplace approximation and return marginal log posterior estimate
%
% Description
% E = GPLA_E(W, GP, X, Y, OPTIONS) takes a GP structure GP
% together with a matrix X of input vectors and a matrix Y of
% target vectors, and fin... |
github | lcnbeapp/beapp-master | lik_qgp.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_qgp.m | 19,707 | utf_8 | 85ad9907ffd15fdea5cb48eef340f8c1 | function lik = lik_qgp(varargin)
%LIK_QGP Create a Quantile Gaussian Process likelihood (utility) structure
%
% Description
% LIK = LIK_QGP('PARAM1',VALUE1,'PARAM2,VALUE2,...)
% creates a quantile gp likelihood structure in which the named
% parameters have the specified values. Any unspecified
% paramet... |
github | lcnbeapp/beapp-master | gpcf_periodic.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_periodic.m | 34,635 | utf_8 | a5da1d3e5513f698a47e34234bbd27e4 | function gpcf = gpcf_periodic(varargin)
%GPCF_PERIODIC Create a periodic covariance function for Gaussian Process
%
% Description
% GPCF = GPCF_PERIODIC('PARAM1',VALUE1,'PARAM2,VALUE2,...)
% creates periodic covariance function structure in which the
% named parameters have the specified values. Any unspec... |
github | lcnbeapp/beapp-master | metric_euclidean.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/metric_euclidean.m | 15,487 | utf_8 | 77201668d68ae283b913304f9a6bc846 | function metric = metric_euclidean(varargin)
%METRIC_EUCLIDEAN An euclidean metric function
%
% Description
% METRIC = METRIC_EUCLIDEAN('PARAM1',VALUE1,'PARAM2,VALUE2,...)
% creates a an euclidean metric function structure in which the
% named parameters have the specified values. Either
% 'components' or... |
github | lcnbeapp/beapp-master | lik_negbinztr.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_negbinztr.m | 30,673 | utf_8 | 5795ceaf5a6a09a0df89fbf0b48d3023 | function lik = lik_negbinztr(varargin)
%LIK_NEGBINZTR Create a zero-truncated Negative-binomial likelihood structure
%
% Description
% LIK = LIK_NEGBINZTR('PARAM1',VALUE1,'PARAM2,VALUE2,...)
% creates zero-truncated Negative-binomial likelihood structure
% in which the named parameters have the specified va... |
github | lcnbeapp/beapp-master | gpcf_neuralnetwork.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_neuralnetwork.m | 25,549 | utf_8 | 33309be52b0b606ff6a3855b8ac7e8c9 | function gpcf = gpcf_neuralnetwork(varargin)
%GPCF_NEURALNETWORK Create a neural network covariance function
%
% Description
% GPCF = GPCF_NEURALNETWORK('PARAM1',VALUE1,'PARAM2,VALUE2,...)
% creates neural network covariance function structure in which
% the named parameters have the specified values. Any
%... |
github | lcnbeapp/beapp-master | gpcf_ppcs1.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_ppcs1.m | 38,503 | utf_8 | c39681a25f1ff058f0e2986776407dfe | function gpcf = gpcf_ppcs1(varargin)
%GPCF_PPCS1 Create a piece wise polynomial (q=1) covariance function
%
% Description
% GPCF = GPCF_PPCS1('nin',nin,'PARAM1',VALUE1,'PARAM2,VALUE2,...)
% creates piece wise polynomial (q=1) covariance function
% structure in which the named parameters have the specified... |
github | lcnbeapp/beapp-master | gpcf_ppcs3.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_ppcs3.m | 40,551 | utf_8 | ec0d6b23865d0e1dc82e7a575159c18d | function gpcf = gpcf_ppcs3(varargin)
%GPCF_PPCS3 Create a piece wise polynomial (q=3) covariance function
%
% Description
% GPCF = GPCF_PPCS3('nin',nin,'PARAM1',VALUE1,'PARAM2,VALUE2,...)
% creates piece wise polynomial (q=3) covariance function
% structure in which the named parameters have the specified
... |
github | lcnbeapp/beapp-master | esls.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/esls.m | 4,193 | utf_8 | ae75a9e42b7e6284ac4e8dd42766f9cf | function [f, energ, diagn] = esls(f, opt, gp, x, y, z, angle_range)
%ESLS Markov chain update for a distribution with a Gaussian "prior"
% factored out
%
% Description
% [F, ENERG, DIAG] = ESLS(F, OPT, GP, X, Y) takes the current
% latent values F, options structure OPT, Gaussian process
% structure GP... |
github | lcnbeapp/beapp-master | gpcf_linear.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/gpcf_linear.m | 20,157 | UNKNOWN | 88ffa237f9edab312bb8598ea4db4415 | function gpcf = gpcf_linear(varargin)
%GPCF_LINEAR Create a linear (dot product) covariance function
%
% Description
% GPCF = GPCF_LINEAR('PARAM1',VALUE1,'PARAM2,VALUE2,...) creates
% a linear (dot product) covariance function structure in which
% the named parameters have the specified values. Any
% unsp... |
github | lcnbeapp/beapp-master | lik_weibull.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/external/dmlt/external/gpstuff/gp/lik_weibull.m | 23,168 | windows_1250 | 75fa0c5df6db30dda34b9a8e3c552dcd | function lik = lik_weibull(varargin)
%LIK_WEIBULL Create a right censored Weibull likelihood structure
%
% Description
% LIK = LIK_WEIBULL('PARAM1',VALUE1,'PARAM2,VALUE2,...)
% creates a likelihood structure for right censored Weibull
% survival model in which the named parameters have the
% specified... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.