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 | bridgecommand/bc-master | tidalData.m | .m | bc-master/bin/tidalData.m | 5,308 | utf_8 | 46a5df2435cc8545f959ee18e742777a | %Generate tidal data for a year - COnfigured for the SimpleEstuary area
function tidalData(startYear)
%save a list of high and low tides, in format Year, month, day, day of week, time, height
filename = ["TideList" num2str(startYear) ".txt"];
fid = fopen (filename, "w");
for startMonth= 1:12
%find year start timesta... |
github | emmasantoianni/EMG-Study-master | findGap.m | .m | EMG-Study-master/findGap.m | 2,022 | utf_8 | 12dd1d60b9a27c575355d6032265e6a4 | function [ closestEnd ] = findGap( arr, startInd, gapSize, direction )
%FINDGAP Find a gap with size gapSize before/after startInd
% a sequence of zeros before index startInd in an array, or
% the gap (if any) before the first non-zero element in the array if
% dir='before'.
% after startInd or after the... |
github | MelanieIStefan/QMBC-master | stkread.m | .m | QMBC-master/day4_image_analysis/images/stkread.m | 11,664 | utf_8 | 05219396afc1d7a39b4ed1561158b54e | function [S, stack_cnt] = stkread(filename, img_first, img_last)
% [S, nbimages] = tiffread;
% [S, nbimages] = tiffread(filename);
% [S, nbimages] = tiffread(filename, image);
% [S, nbimages] = tiffread(filename, first_image, last_image);
%
% Reads 8,16,32 bits uncompressed grayscale tiff and stacks of tiff images,
% ... |
github | MelanieIStefan/QMBC-master | IsMyRatGuessing.m | .m | QMBC-master/day3_stats/Rattus binomialis/IsMyRatGuessing.m | 1,007 | utf_8 | 3cb1a881337822ee01329f1635bdf54b |
function [pVal]=IsMyRatGuessing(nCorrect,nTrials,pNull,nSims)
% IsMyRatGuessing.m: A Monte Carlo simulation approach to the binomial
% problem
%
% pVal = IsMyRatGuessing(nCorrect,nTrials,pNull,nSims)
%
% Inputs:
% - nCorrect: # of trials rat got right
%
% Outputs:
% - pVal: probability of guesing correctl... |
github | davidBelanger/TextLDS-master | solvric.m | .m | TextLDS-master/matlab/SSID/solvric.m | 1,375 | utf_8 | b54b1299ce0a5635f1e8aabe814a9f02 | %
% [P,flag] = solvric(A,G,C,L0)
%
% Description:
% Solves the Forward Riccati equation:
%
% P = A P A' + (G - A P C') (L0 - C P C')^{-1} (G - A P C')'
%
% Using the generalized eigenvalue decomposition of page 62
% flag = 1 when the covariance sequence is not... |
github | davidBelanger/TextLDS-master | solvricLR.m | .m | TextLDS-master/matlab/SSID/solvricLR.m | 1,565 | utf_8 | 0142abfd0c3e5b4216a5179f1ba32aba | %%NOTE: this is the same as solvric.m, except that you pass it an MIL struct for
%%inv(L0) directly rather than inverting L0 when you get it. This is useful
%%for structured L0 (e.g. diag + low rank).
%
% [P,flag] = solvricLR(A,G,C,invL0)
%
% Description:
% Solves the Forward Riccati equation:
%
% ... |
github | davidBelanger/TextLDS-master | word_ApproxEMforLDS.m | .m | TextLDS-master/matlab/ASOS/word_ApproxEMforLDS.m | 9,491 | utf_8 | bb8f7219971027cbb5c2f2bce364d55f | function [params, LLhist] = word_ApproxEMforLDS( iparams, priors, numiters, updateTransMat, updateHiddenCovMat, updateObservedCovMat,updateInit, firstIterToUpdateEmbeddings,firstIterToUpdateTransitions,ape, T, covStyle)
LLhist = zeros(1,numiters);
[A,B,C,D,Q,invR,insize,outsize,hidsize,pi_1,V_1] = word_pextract( ipa... |
github | elliottd/GroundedTranslation-master | prepare_images_batch.m | .m | GroundedTranslation-master/matlab_features_reference/prepare_images_batch.m | 699 | utf_8 | ab983d52c9d38a97c93a3616242e9c59 | % This product includes software developed by Andrej Karpathy.
function images = prepare_images_batch(im_cell)
% takes a cell array of images in raw uint8 form
mean_pix = [103.939, 116.779, 123.68]; % VGG mean assumed
batch_size = 10;
CROPPED_DIM = 224;
% insert images
images = zeros(CROPPED_DIM, CROPPED_DIM, 3, ba... |
github | shnizelsh/halftoning-evaluator-master | am_screen.m | .m | halftoning-evaluator-master/am_screen.m | 2,229 | utf_8 | 1099a260a30dfbd0de54e0838f9ba8bd |
function [ htimage ] = am_screen( cmyk )
% A Simple implementation of AM screen halftone algorithm
rows=size(cmyk,1);
cols=size(cmyk,2);
rotate=false;
if(rows > cols)
cmyk=imrotate(cmyk,90);
rotate=true;
temp = cols;
cols=rows;
rows=temp;
end
htimage=zeros(rows,cols,4);
c_cell = [ 0 11 15 0 0... |
github | shnizelsh/halftoning-evaluator-master | lut_inverse.m | .m | halftoning-evaluator-master/lut_inverse.m | 587 | utf_8 | c65354a69cf19f39070ab2046246e62a |
function [ inverted_lut ] = lut_inverse( LUT )
% This function gets a Lookup table (vector) and return an inverted Lookup table
LUT=uint8(LUT);
n=size(LUT,1);
% ensure weak increasing monotonic
for i=2:n
if(LUT(i-1)>LUT(i))
LUT(i)=LUT(i-1)+1;
end
end
M=zeros(n,1);
for i=0:n-1
%find first j
f... |
github | shnizelsh/halftoning-evaluator-master | halftone.m | .m | halftoning-evaluator-master/halftone.m | 1,838 | utf_8 | 74a3ac7695cc83490569bf95f79c334b | function [ input_image ] = halftone( input_image ,halftone_algorithm)
% Perform the halfoninig function on the given image with the given
% algorithm.
%
% input_image - the given image
% halftone_algorithm - halftone_algorithm object hold the a pointer to
% the halftone function and the halft... |
github | shnizelsh/halftoning-evaluator-master | save_results.m | .m | halftoning-evaluator-master/save_results.m | 1,837 | utf_8 | 75af4316915cf8b74119d93738591b7f |
function save_results(runID,elapsedTime,algorithm,printer,method,g,b,s,im,im_original,im_path)
%% save_results function is saving the test result to a csv file
%
% Parameters:
% runID - An aidentifier used in the filename to be used in the directory
% name
% elapsedTime - the test's ellapsed time
% alg... |
github | shnizelsh/halftoning-evaluator-master | rgb2cmyk.m | .m | halftoning-evaluator-master/rgb2cmyk.m | 848 | utf_8 | 2c615c98a0099e193eaafca709940767 | function [ cmyk_image ] = rgb2cmyk(rgb_image, config)
% rgb2cmyk converts a RGB image to CMYK using given in the config parameters ICC profile
% to define thew ICC profile use config.icc='bin/[filename].icc';
% by default it will use SWOP2013C5.icc
% for input it will use sRGB.icm
icc_params.icc_in='sRGB.icm';
if (~e... |
github | shnizelsh/halftoning-evaluator-master | input_processor.m | .m | halftoning-evaluator-master/input_processor.m | 1,947 | utf_8 | 015b290daf9ce4b762ed8305a226102c | function [ im_ready, im_original ] = input_processor( im , config, LUT)
% input_processor funtion is an initial stage used to prepare the image for halftoning
%
% Parameters:
% im - The image to prepare
% config - the configuration of the test
% LUT - Look up table used to apply dot gain compensation
if(~exist('... |
github | shnizelsh/halftoning-evaluator-master | SFF.m | .m | halftoning-evaluator-master/SFF/SFF.m | 3,572 | utf_8 | 88555bacab6fd7e203cf5edc5c3fb4ff | % =================================================================
% Sparse Feature Fidelity (SFF) Version 2.0
% Copyright(c) 2013 Hua-wen Chang
% All Rights Reserved.
% changhuawen@gmail.com
% ----------------------------------------------------------------------
% Permission to use, copy, or modify this softwar... |
github | shnizelsh/halftoning-evaluator-master | orthogonalizerows.m | .m | halftoning-evaluator-master/SFF/Training/orthogonalizerows.m | 108 | utf_8 | af9ece0223a74a89f1467f04ac884d12 | %orthogonalize rows of a matrix.
function Wort=orthogonalizerows(W)
Wort = real((W*W')^(-0.5))*W;
return;
|
github | shnizelsh/halftoning-evaluator-master | ica.m | .m | halftoning-evaluator-master/SFF/Training/ica.m | 1,145 | utf_8 | cb70fc438dbdea38753629ff41bb7181 | % Sparse Feature Fidelity (SFF)
% Training on image samples by ICA
% FastICA (Aapo Hyvarinen)
% INPUT:
% Z : whitened image patch data
% n : number of independent components to be estimated
function W = ica(Z,n)
%create random initial value of W, and orthogonalize it
W = orthogonalizerows(randn(n,size(Z,1)));
%rea... |
github | shnizelsh/halftoning-evaluator-master | TrainW.m | .m | halftoning-evaluator-master/SFF/Training/TrainW.m | 1,624 | utf_8 | 1988bcd67a9681af2d7706ac137acdbe | % =================================================================
% Sparse Feature Fidelity (SFF) Version 2.0
% Copyright(c) 2013 Hua-wen Chang
% All Rights Reserved.
% ----------------------------------------------------------------
% Please refer to the following paper
%
% Hua-wen Chang, Hua Yang, Yong Gan, and... |
github | shnizelsh/halftoning-evaluator-master | pca.m | .m | halftoning-evaluator-master/SFF/Training/pca.m | 883 | utf_8 | eedb171177fe70fc151a6439c701cee6 | % =================================================================
% Sparse Feature Fidelity (SFF) Version 2.0
% Copyright(c) 2013 Hua-wen Chang
% All Rights Reserved.
% ----------------------------------------------------------------
% WHITENING AND DIMENSIONALITY REDUCTION BY PCA
%
% INPUT variables:
% X ... |
github | shnizelsh/halftoning-evaluator-master | sampleimages.m | .m | halftoning-evaluator-master/SFF/Training/sampleimages.m | 1,648 | utf_8 | 485ac21685a5811f2ed392b0c4a6df99 | % =================================================================
% Sparse Feature Fidelity (SFF) Version 2.0
% Copyright(c) 2013 Hua-wen Chang
% All Rights Reserved.
% ----------------------------------------------------------------
% Please refer to the following paper
%
% Hua-wen Chang, Hua Yang, Yong Gan, and... |
github | csdms-contrib/area-slope_equation_calculator-master | Area_slope_gui.m | .m | area-slope_equation_calculator-master/src/Area_slope_gui.m | 11,475 | utf_8 | d55174361dbcac3cce1d1858a1807c50 | function varargout = Area_slope_gui(varargin)
% AREA_SLOPE_GUI M-file for Area_slope_gui.fig
% AREA_SLOPE_GUI, by itself, creates a new AREA_SLOPE_GUI or raises the existing
% singleton*.
%
% H = AREA_SLOPE_GUI returns the handle to a new AREA_SLOPE_GUI or the handle to
% the existing singleton*.
%
... |
github | chandreshiit/brown-rlab-master | emds.m | .m | brown-rlab-master/stisomap/emds.m | 3,815 | utf_8 | 7c0a6f528501e6bc98c1aed004e15f28 | % emds - Multidimensional Scaling code snipet extracted from Tenenbaum et
% al. Isomap source
% [Y,R] = emds(D,landmarks,dims)
%
% Y = embedding coordinates
% R = residual variance
% D = distance matrix
% landmarks = array of landmark points
% dims = array of embedding d... |
github | chandreshiit/brown-rlab-master | DistMat.m | .m | brown-rlab-master/stisomap/DistMat.m | 269 | utf_8 | cf6e1eadde1a3b939cebd602596d1ff6 | % compute distance matrix for an array of column vectors (a matrix)
%
% D = DistMat(A)
function D = DistMat(A)
[R C] = size(A);
D = zeros(C,C);
for c = 2:C
for r = 1:c-1
D(r,c) = norm( (A(:,c)-A(:,r)), 2 );
end
end
D = D + D';
return |
github | chandreshiit/brown-rlab-master | DistMatWin.m | .m | brown-rlab-master/stisomap/DistMatWin.m | 1,905 | utf_8 | c5d907fad56c2d8bd552841de6105d17 | % compute a windowed distance (squared) matrix
% for an array of column vectors (a matrix)
% temporal window is of length n
%
% D = DistMatWin(A,n)
%
% Written by Alan Peters with modification by Chad Jenkins
function D = DistMatWin(A,n,p)
% compute the distance matrix
T = DistMat(A);
if n == 1 % the... |
github | chandreshiit/brown-rlab-master | IsomapIIst.m | .m | brown-rlab-master/stisomap/isomap/IsomapIIst.m | 19,657 | utf_8 | 8cb262c415b52a94424211c6804512a4 |
function [Y, R, E, stcor] = IsomapIIst(D, n_fcn, n_size, options);
% ISOMAPIIst Computes ST-Isomap embedding using an advanced version of
% the algorithm in Tenenbaum, de Silva, and Langford (2000),
% which can take advantage of sparsity in the graph and
% redundancy in t... |
github | francescoborrelli/ParkingDemo-master | kinematiccar.m | .m | ParkingDemo-master/DP/kinematiccar.m | 1,369 | utf_8 | 139ba4400ba7efab57af7b17d0d4d6f7 | % Georg Schildbach, 14/Dec/2013 --- Automobile
% Simulates the kinematic car
% --------------------------------------------------------------------------------------------------
% dt: total simulation time
% x,y,phi: initial coordinates
% v: velocity [m/s]
% a: acceleration [m/s^2]
% delta: front wheel steering angle [... |
github | francescoborrelli/ParkingDemo-master | plotcar.m | .m | ParkingDemo-master/DP/plotcar.m | 4,520 | utf_8 | 96ad353359df816956fba13c52cb6879 | % Georg Schildbach, 15/Dec/2013 --- Automobile
% Plots the geometric data of the car
% --------------------------------------------------------------------------------------------------
% plotcar(x,y,phi,delta,auto,fig,rgb)
% ----------------------------------------------------------------------------------------------... |
github | NASA-DEVELOP/M-SRM-master | CreateMaster.m | .m | M-SRM-master/Ejecutables/Matlab/CreateMaster.m | 6,126 | utf_8 | 2518f11ed501715983efd1ac6ee3f216 | %==========================================================================
% Assembles all SRM inputs to one master file for easy inspection
%==========================================================================
%
% function usage:
% []=CreateMaster(root,Basin,year)
%
% Variable Definitions:
% ... |
github | NASA-DEVELOP/M-SRM-master | TotalDischarge.m | .m | M-SRM-master/Ejecutables/Matlab/TotalDischarge.m | 1,917 | utf_8 | c9156049b98e95a886b8925008e9c824 | %==========================================================================
% Totals historical Discharge values for SRM validation
%==========================================================================
%
% Creates total discharge files by adding all tabs located in the DGA
% downloaded excel file... |
github | NASA-DEVELOP/M-SRM-master | AvgPrecip.m | .m | M-SRM-master/Ejecutables/Matlab/AvgPrecip.m | 2,918 | utf_8 | c775946abecbb0d557eed400491b3f38 | %==========================================================================
% Averages Precipitation values
%==========================================================================
%
% function usage:
% []=AvgPrecip(root,Basin,year)
%
% Variable Definitions:
% root = Director... |
github | NASA-DEVELOP/M-SRM-master | DEVELOP_SRM.m | .m | M-SRM-master/Ejecutables/Matlab/DEVELOP_SRM.m | 19,126 | utf_8 | 4157197ae226ad9c4fc80dc79fd12bf9 | %==========================================================================
% NASA DEVELOP- Modified Implimentation of the Snowmelt Runoff Model
%==========================================================================
%
% This script should be called through the matlab script titled
% 'SRM_Terminal.m', or b... |
github | NASA-DEVELOP/M-SRM-master | smooth.m | .m | M-SRM-master/Ejecutables/Matlab/smooth.m | 1,009 | utf_8 | b718dc8bb4226ebfc7bd75f74ffda847 | % this script was writen to replace the one in the curve fitting toolbox
% that may not be avialable to all users.
% it performs a moving averaged smoothing on a vector dataset with custom
% window width for the moving average
%windowsizes are rouned up to the nearest odd number.
function [smoothed]=smooth(signal,wi... |
github | NASA-DEVELOP/M-SRM-master | Debug.m | .m | M-SRM-master/Ejecutables/Matlab/Debug.m | 67,227 | utf_8 | 7a1455a4af2182b3152e29e0436e87d5 | %%=======================================================================%%
% Graphical User Interface for Chile Water resources project
% Version 4/4/2014
%%=======================================================================%%
%=================================================... |
github | NASA-DEVELOP/M-SRM-master | Create_Profiles.m | .m | M-SRM-master/Ejecutables/Matlab/Create_Profiles.m | 5,119 | utf_8 | dea3f4479285058815ad7f8fb72196c7 | %==========================================================================
% Script to create snowcover and temperature profiles
%==========================================================================
%
% Script should be used when characterizing typical snowcover and
% temperature profiles for a bas... |
github | NASA-DEVELOP/M-SRM-master | GUI_English.m | .m | M-SRM-master/Ejecutables/Matlab/GUI_English.m | 16,729 | utf_8 | dd92c97ffc89024ef81d1d63ad024fdf | %%=======================================================================%%
% Graphical User Interface for Chile Water resources project
% Version 4/4/2014
%%=======================================================================%%
%=================================================... |
github | NASA-DEVELOP/M-SRM-master | Find_MODIS_Offset.m | .m | M-SRM-master/Ejecutables/Matlab/Find_MODIS_Offset.m | 1,388 | utf_8 | b83645dd04ec7d0b6f3e3c5012b67cc4 | %Find displacement between 2 simple grayscale images using cross
%correlation
function [offrow,offcol]=Find_MODIS_Offset(Root,Basin,year)
pad=300;
% fetch Elevation zone tiff
ElevationsPath=strcat(Root,'\Datos\Cuencas\',Basin,'\Parametros\Elev_Zones.tif');
tempE=imread(ElevationsPath);
E=zeros(size(tem... |
github | NASA-DEVELOP/M-SRM-master | GUI_Spanish.m | .m | M-SRM-master/Ejecutables/Matlab/GUI_Spanish.m | 16,728 | utf_8 | 4ed2a722d89d28030fbee156030df5e5 | %%=======================================================================%%
% Graphical User Interface for Chile Waterresources project
% Version 4/4/2014
%%=======================================================================%%
%==================================================... |
github | NASA-DEVELOP/M-SRM-master | SnowCoveredArea.m | .m | M-SRM-master/Ejecutables/Matlab/SnowCoveredArea.m | 9,549 | utf_8 | ea9f72f8b2a0374598048c0e695e6d44 | %==========================================================================
% Calculate the Snow Covered Area for input Year
%==========================================================================
% Function inputs a Directory of Preprocessed MODIS data. This data must
% have already been run through ... |
github | NASA-DEVELOP/M-SRM-master | ForecastSnow.m | .m | M-SRM-master/Ejecutables/Matlab/ForecastSnow.m | 6,087 | utf_8 | 2310f8621d2e79fe2d8730090085606f | %==========================================================================
% Function to project Average Snow cover curves for forecasting purposes
%==========================================================================
%
%
% Version 4/4/2014
%====================================================================... |
github | NASA-DEVELOP/M-SRM-master | AvgTemp.m | .m | M-SRM-master/Ejecutables/Matlab/AvgTemp.m | 3,708 | utf_8 | 0855fda9a138d84c74dc1b69bdec7e39 | %==========================================================================
% Averages Temperature values
%==========================================================================
%
% function usage:
% []=AvgTemp(root,Basin,year)
%
% Variable Definitions:
% root = Directory wh... |
github | NASA-DEVELOP/M-SRM-master | Hypso.m | .m | M-SRM-master/Ejecutables/Matlab/Hypso.m | 4,869 | utf_8 | 40c6fe8b90ff8b852bf34dbbb0e6ea88 | %==========================================================================
% Creates a Hypsometric Profile for 1 Basin
%==========================================================================
%
% function usage:
% []=Hypso(root,Basin)
%
% Variable Definitions:
% root = Directory where... |
github | NASA-DEVELOP/M-SRM-master | Findoffset.m | .m | M-SRM-master/Ejecutables/Matlab/Findoffset.m | 8,017 | utf_8 | 5ec5feb05893fd508572bb0314cc39dd |
function [output Greg] = Findoffset(buf1ft,buf2ft,usfac)
% function [output Greg] = dftregistration(buf1ft,buf2ft,usfac);
% Efficient subpixel image registration by crosscorrelation. This code
% gives the same precision as the FFT upsampled cross correlation in a
% small fraction of the computation time and with reduc... |
github | NASA-DEVELOP/M-SRM-master | Create_MultiYear_Master.m | .m | M-SRM-master/Ejecutables/Matlab/Create_MultiYear_Master.m | 2,002 | utf_8 | a5bf4e2cdb05918d11f4db67b8115d09 | %==========================================================================
% Create multi-year master
%==========================================================================
%
% Concatenates multiple years worth of existing master files for multi
% year simulations to be performed.
%
% ... |
github | pylance/BCI-GEM-Pipeline-master | main_menu.m | .m | BCI-GEM-Pipeline-master/main_menu.m | 5,729 | utf_8 | c658d3a239fd1dd05fbdd1bb602e900d | function varargout = main_menu(varargin)
% MAIN_MENU MATLAB code for main_menu.fig
% MAIN_MENU, by itself, creates a new MAIN_MENU or raises the existing
% singleton*.
%
% H = MAIN_MENU returns the handle to a new MAIN_MENU or the handle to
% the existing singleton*.
%
% MAIN_MENU('CALLBACK',hO... |
github | pylance/BCI-GEM-Pipeline-master | eeglab.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/eeglab.m | 110,746 | utf_8 | 56cbc9c3855016194dd332ea1e3634fd | % eeglab() - Matlab graphic user interface environment for
% electrophysiological data analysis incorporating the ICA/EEG toolbox
% (Makeig et al.) developed at CNL / The Salk Institute, 1997-2001.
% Released 11/2002- as EEGLAB (Delorme, Makeig, et al.) at the Swartz Center
% for Computational Neuroscience,... |
github | pylance/BCI-GEM-Pipeline-master | display.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/display.m | 1,180 | utf_8 | d3d679b5764eca6d062540923f669f7b | % display() - display an EEG data class underlying structure
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the ... |
github | pylance/BCI-GEM-Pipeline-master | reshape.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/reshape.m | 1,449 | utf_8 | d59a7e256f6fc43fe77f3be9319fcc46 | % reshape() - reshape of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free ... |
github | pylance/BCI-GEM-Pipeline-master | end.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/end.m | 901 | utf_8 | 0e38d125a547083cb574fbd3bb455fbd | % end() - last index to memmapdata array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Founda... |
github | pylance/BCI-GEM-Pipeline-master | subsasgn.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/subsasgn.m | 1,590 | utf_8 | 6b2894eb17dab5aae0637b84992ffb7d | % subsasgn() - define index assignment for eegdata objects
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Fr... |
github | pylance/BCI-GEM-Pipeline-master | isnumeric.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/isnumeric.m | 877 | utf_8 | 34baf204e1b984ee69cf7f462fe2e524 | % isnumeric() - returns 1
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either v... |
github | pylance/BCI-GEM-Pipeline-master | length.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/length.m | 913 | utf_8 | f0841237745a123f3215e00164cc4a1a | % length() - length of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free So... |
github | pylance/BCI-GEM-Pipeline-master | sum.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/sum.m | 1,913 | utf_8 | dbd7353e16ccf6a1a0b69875cd9050cb | % sum() - sum of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software... |
github | pylance/BCI-GEM-Pipeline-master | size.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/size.m | 1,383 | utf_8 | c7033b3ab1405ded2c8794f2c214beb9 | % size() - size of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Softwa... |
github | pylance/BCI-GEM-Pipeline-master | subsref.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/subsref.m | 4,622 | utf_8 | 096fd75b6454f11ffee5a172000a64c1 | % subsref() - index eegdata class
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; e... |
github | pylance/BCI-GEM-Pipeline-master | ndims.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/ndims.m | 1,169 | utf_8 | 8c3ed2dde450e1422a2552d22e9c150b | % ndims() - number of dimension of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
%... |
github | pylance/BCI-GEM-Pipeline-master | memmapdata.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@memmapdata/memmapdata.m | 1,994 | utf_8 | 5f967fcb7b637954900e09789144dde6 | % memmapdata() - create a memory-mapped data class
%
% Usage:
% >> data_class = memmapdata(data);
%
% Inputs:
% data - input data or data file
%
% Outputs:
% data_class - output dataset class
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
... |
github | pylance/BCI-GEM-Pipeline-master | display.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/display.m | 1,161 | utf_8 | b43db5e3387d5dcb39fafa9aa03939f9 | % display() - display an EEG data class underlying structure
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the ... |
github | pylance/BCI-GEM-Pipeline-master | reshape.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/reshape.m | 1,242 | utf_8 | cc03295fbaa6179eb2e8b266daf6b644 | % reshape() - reshape of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free ... |
github | pylance/BCI-GEM-Pipeline-master | subsasgn_old.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/subsasgn_old.m | 9,802 | utf_8 | 0fc68a1bfa60e3118b3a4b6efd10fa52 | % subsasgn() - define index assignment for eegdata objects
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Fr... |
github | pylance/BCI-GEM-Pipeline-master | end.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/end.m | 901 | utf_8 | 0e38d125a547083cb574fbd3bb455fbd | % end() - last index to memmapdata array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Founda... |
github | pylance/BCI-GEM-Pipeline-master | subsasgn.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/subsasgn.m | 10,331 | utf_8 | 5788e61c5645defe830043553e4122ff | % subsasgn() - define index assignment for eegdata objects
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Fr... |
github | pylance/BCI-GEM-Pipeline-master | isnumeric.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/isnumeric.m | 877 | utf_8 | 34baf204e1b984ee69cf7f462fe2e524 | % isnumeric() - returns 1
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either v... |
github | pylance/BCI-GEM-Pipeline-master | checkcopies_local.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/checkcopies_local.m | 634 | utf_8 | 8eb8d5fec95c91346e91a09010082b47 | % subfunction checking the number of local copies
% -----------------------------------------------
function ncopies = checkcopies_local(obj, arg);
ncopies = 0;
if isstruct(arg)
for ilen = 1:length(arg)
for index = fieldnames(arg)'
ncopies = ncopies + checkcopies_local(obj, arg(ilen).(index{1}))... |
github | pylance/BCI-GEM-Pipeline-master | changefile.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/changefile.m | 187 | utf_8 | e75127c90da43ddce182d36cf0abbdee | % this function is called when the file is being saved
function obj = changefile(obj, newfile)
movefile(obj.dataFile, newfile);
obj.dataFile = newfile;
obj.writable = false; |
github | pylance/BCI-GEM-Pipeline-master | var.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/var.m | 1,416 | utf_8 | 2360192fa42b3c35ebd7743ffe4fe8b6 | % var() - variance of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Sof... |
github | pylance/BCI-GEM-Pipeline-master | length.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/length.m | 913 | utf_8 | f0841237745a123f3215e00164cc4a1a | % length() - length of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free So... |
github | pylance/BCI-GEM-Pipeline-master | sum.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/sum.m | 1,212 | utf_8 | 2fbce1d1b6e2a5edf32742897441a732 | % sum() - sum of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software... |
github | pylance/BCI-GEM-Pipeline-master | size.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/size.m | 1,751 | utf_8 | daf6932de04161ccb2df3df31b45203a | % size() - size of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Softwa... |
github | pylance/BCI-GEM-Pipeline-master | subsref.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/subsref.m | 2,711 | utf_8 | 1da2db6dbbc53f36d6d2954f095f9064 | % subsref() - index eegdata class
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; e... |
github | pylance/BCI-GEM-Pipeline-master | ndims.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/@mmo/ndims.m | 1,095 | utf_8 | 7ddcbafa2aaf95308a1a4de4a272f0ae | % ndims() - number of dimension of memory mapped underlying array
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008
% Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
%... |
github | pylance/BCI-GEM-Pipeline-master | correctfit.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/correctfit.m | 3,222 | utf_8 | 69c8b2f965023329820bdfd3c7e82176 | % correctfit() - correct fit using observed p-values. Use this function
% if for some reason, the distribution of p values is
% not uniform between 0 and 1
%
% Usage:
% >> [p phat pci zerofreq] = correctfit(pval, 'key', 'val');
%
% Inputs:
% pval - input p value
%
% Optional inputs... |
github | pylance/BCI-GEM-Pipeline-master | timef.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/timef.m | 42,818 | utf_8 | 6663467d76d01722baccf168fec18e1b | % timef() - Returns estimates and plots of mean event-related spectral
% perturbation (ERSP) and inter-trial coherence (ITC) changes
% across event-related trials (epochs) of a single input time series.
% * Uses either fixed-window, zero-padded FFTs (fastest), wavelet
% 0-padded D... |
github | pylance/BCI-GEM-Pipeline-master | rsadjust.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/rsadjust.m | 2,955 | utf_8 | 45d8f416e2d360293ee83cb15f5e3976 | % rsadjust() - adjust l-values (Ramberg-Schmeiser distribution)
% with respect to signal mean and variance
%
% Usage: p = rsadjust(l3, l4, m, var, skew)
%
% Input:
% l3 - value lambda3 for Ramberg-Schmeiser distribution
% l4 - value lambda4 for Ramberg-Schmeiser distribution
% m - mean of t... |
github | pylance/BCI-GEM-Pipeline-master | newcrossf.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/newcrossf.m | 63,870 | utf_8 | cb2a530dbabd60d30681d5c293194574 | % newcrossf() - Returns estimates and plots event-related coherence (ERCOH)
% between two input data time series. A lower panel (optionally) shows
% the coherence phase difference between the processes. In this panel:
% In the plot output by > newcrossf(x,y,...);
% 90 degrees (orang... |
github | pylance/BCI-GEM-Pipeline-master | crossf.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/crossf.m | 59,309 | utf_8 | 7d2f2a441e7b0fe30b888345f54f4a47 | % crossf() - Returns estimates and plots event-related coherence (ERCOH)
% between two input data time series (X,Y). A lower panel (optionally)
% shows the coherence phase difference between the processes.
% In this panel, output by > crossf(X,Y,...);
% 90 degrees (orange) means X l... |
github | pylance/BCI-GEM-Pipeline-master | dftfilt2.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/dftfilt2.m | 5,665 | utf_8 | fa2b4cd1d3a209b72ce506ee4e6fee46 | % dftfilt2() - discrete complex wavelet filters
%
% Usage:
% >> wavelet = dftfilt2( freqs, cycles, srate, cyclefact)
%
% Inputs:
% freqs - frequency array
% cycles - cycles array. If one value is given, all wavelets have
% the same number of cycles. If two values are given, the
% tw... |
github | pylance/BCI-GEM-Pipeline-master | newtimef.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/newtimef.m | 97,226 | utf_8 | 0d13409bc327af6c60c24ec01c7f89a5 | % newtimef() - Return estimates and plots of mean event-related (log) spectral
% perturbation (ERSP) and inter-trial coherence (ITC) events across
% event-related trials (epochs) of a single input channel time series.
%
% * Also can compute and statistically compare transforms for two time
%... |
github | pylance/BCI-GEM-Pipeline-master | rspdfsolv.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/rspdfsolv.m | 2,680 | utf_8 | f54da2906c104216b972ff3b6bbf6f3e | % rspdfsolv() - sub-function used by rsfit() to searc for optimal
% parameter for Ramberg-Schmeiser distribution
%
% Usage: res = rspdfsolv(l, l3, l4)
%
% Input:
% l - [lambda3 lamda4] parameters to optimize
% skew - expected skewness
% kurt - expected kurtosis
%
% Output:
% res - residual
%
%... |
github | pylance/BCI-GEM-Pipeline-master | dftfilt.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/dftfilt.m | 2,686 | utf_8 | b950c4302f749a1e9cffcd4c7f4ebe6a | % dftfilt() - discrete Fourier filter
%
% Usage:
% >> b = dftfilt(n,W,c,k,q)
%
% Inputs:
% n - number of input samples
% W - maximum angular freq. relative to n, 0 < W <= .5
% c - cycles
% k - oversampling
% q - [0;1] 0->fft, 1->c cycles
%
% Authors: Sigurd Enghoff, Arnaud Delorme & Scott Makeig,
% ... |
github | pylance/BCI-GEM-Pipeline-master | rspfunc.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/rspfunc.m | 1,468 | utf_8 | d6a6d26022ec2e38fa4adca9a28a5dde | % rspfunc() - sub-function used by rsget()
%
% Usage: res = rspfunc(pval, l, rval)
%
% Input:
% pval - p-value to optimize
% l - [l1 l2 l3 l4] l-values for Ramberg-Schmeiser distribution
% rval - expected r-value
%
% Output:
% res - residual
%
% Author: Arnaud Delorme, SCCN, 2003
%
% See also: rsget()
%
% R... |
github | pylance/BCI-GEM-Pipeline-master | correct_mc.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/correct_mc.m | 5,698 | utf_8 | 92f18a363d2fec001a50fafbcf9e06b5 | % correct_mc() - compute an upper limit for the number of independant
% time-frequency estimate in a given time-frequency image.
% This number can be used to correct for multiple comparisons.
%
% Usage:
% [ncorrect array] = correct_mc( EEG, cycles, maxfreq, timesout);
%
% Inputs:
% ... |
github | pylance/BCI-GEM-Pipeline-master | pac.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/pac.m | 21,849 | utf_8 | a7d13b249d1c873e24a0f43a7cda2c5c | % pac() - compute phase-amplitude coupling (power of first input
% correlation with phase of second). There is no graphical output
% to this function.
%
% Usage:
% >> pac(x,y,srate);
% >> [coh,timesout,freqsout1,freqsout2,cohboot] ...
% = pac(x,y,srate,'key1', 'val1', 'key2', val... |
github | pylance/BCI-GEM-Pipeline-master | bootstat.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/bootstat.m | 20,825 | utf_8 | 406a9744b6812cd9f9f1eed16ca63e82 | % bootstat() - accumulate surrogate data to assess significance by permutation of some
% measure of two input variables.
%
% If 'distfit','on', fits the psd with a 4th-order polynomial using the
% data kurtosis, as in Ramberg, J.S., Tadikamalla, P.R., Dudewicz E.J.,
% ... |
github | pylance/BCI-GEM-Pipeline-master | timefreq.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/timefreq.m | 33,427 | utf_8 | dc70f7b5afd51d05bcf926a934072865 | % timefreq() - compute time/frequency decomposition of data trials. This
% function is a compute-only function called by
% the more complete time/frequency functions newtimef()
% and newcrossf() which also plot timefreq() results.
%
% Usage:
% >> [tf, freqs, times] =... |
github | pylance/BCI-GEM-Pipeline-master | pac_cont.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/pac_cont.m | 17,447 | utf_8 | 9b94d431be58419e3715e54645687469 | % pac_cont() - compute phase-amplitude coupling (power of first input
% correlation with phase of second). There is no graphical output
% to this function.
%
% Usage:
% >> pac_cont(x,y,srate);
% >> [pac timesout pvals] = pac_cont(x,y,srate,'key1', 'val1', 'key2', val2' ...);
%
% Inputs:
% x ... |
github | pylance/BCI-GEM-Pipeline-master | dftfilt3.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/dftfilt3.m | 7,390 | utf_8 | 7ef2a5114ee38513d5a55a8f38553cb1 | % dftfilt3() - discrete complex wavelet filters
%
% Usage:
% >> [wavelet,cycles,freqresol,timeresol] = dftfilt3( freqs, cycles, srate, varargin)
%
% Inputs:
% freqs - vector of frequencies of interest.
% cycles - cycles array. If cycles=0, then the Hanning tapered Short-term FFT is used.
% If o... |
github | pylance/BCI-GEM-Pipeline-master | rsget.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/rsget.m | 1,800 | utf_8 | 47daf6498859ced84787d07802f22789 | % rsget() - get the p-value for a given collection of l-values
% (Ramberg-Schmeiser distribution)
%
% Usage: p = getfit(l, val)
%
% Input:
% l - [l1 l2 l3 l4] l-values for Ramberg-Schmeiser distribution
% val - value in the distribution to get a p-value estimate at
%
% Output:
% p - p-value
%
% Aut... |
github | pylance/BCI-GEM-Pipeline-master | rsfit.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/rsfit.m | 6,481 | utf_8 | ea9ce35750ccb745a5f9471fc6554a91 | % rsfit() - find p value for a given value in a given distribution
% using Ramberg-Schmeiser distribution
%
% Usage: >> p = rsfit(x, val)
% >> [p c l chi2] = rsfit(x, val, plot)
%
% Input:
% x - [float array] accumulation values
% val - [float] value to test
% plot - [0|1|2] plot fit. Using... |
github | pylance/BCI-GEM-Pipeline-master | timewarp.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/timewarp.m | 3,452 | utf_8 | 910bc9b6a9fca6b6a50908d815239dc6 | % timewarp() - Given two event marker vectors, computes a matrix
% that can be used to warp a time series so that its
% evlatencies match newlatencies. Values of the warped
% timeserie that falls between two frames in the original
% timeserie will be linear ... |
github | pylance/BCI-GEM-Pipeline-master | angtimewarp.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/timefreqfunc/angtimewarp.m | 4,506 | utf_8 | f97d91021b5c9c68983b7721b21206fb | % angtimewarp() - Given two event marker vectors, computes a
% warping of the input angular time series so that its
% evlatencies match newlatencies. Values of the warped
% timeserie that falls between two frames in the original
% timeserie will be linearl... |
github | pylance/BCI-GEM-Pipeline-master | shortread.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/shortread.m | 2,642 | utf_8 | 7efadd1fb9c9395f1cd3c917e6a93675 | % shortread() - Read matrix from short file.
%
% Usage:
% >> A = shortread(filename,size,'format',offset)
%
% Inputs:
% filename - Read matrix a from specified file while assuming four byte
% short integers.
% size - The vector SIZE determine the number of short elements to be
% read... |
github | pylance/BCI-GEM-Pipeline-master | scanfold.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/scanfold.m | 2,396 | utf_8 | fc03538051488f1358961f46484d958d | % scanfold() - scan folder content
%
% Usage:
% >> [cellres textres] = scanfold(foldname);
% >> [cellres textres] = scanfold(foldname, ignorelist, maxdepth);
%
% Inputs:
% foldname - [string] name of the folder
% ignorelist - [cell] list of folders to ignore
% maxdepth - [integer] maximum folder dep... |
github | pylance/BCI-GEM-Pipeline-master | datlim.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/datlim.m | 641 | utf_8 | f4c0160c492f5049e9dbcc932cafe0e7 | % datlim() - return min and max of a matrix
%
% Usage:
% >> limits_vector = datlim(data);
%
% Input:
% data - numeric array
% Outputs:
% limits_vector = [minval maxval]
%
% Author: Scott Makeig, SCCN/INC/UCSD, May 28, 2005
function [limits_vector] = datlim(data)
if ~isnumeric(data)
erro... |
github | pylance/BCI-GEM-Pipeline-master | lapplot.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/lapplot.m | 4,148 | utf_8 | bbfb726aee519b4b7b446c516439e24f | % lapplot() - Compute the discrete laplacian of EEG scalp distribution(s)
%
% Usage:
% >> laplace = lapplot(map,eloc_file,draw)
%
% Inputs:
% map - Activity levels, size (nelectrodes,nmaps)
% eloc_file - Electrode location filename (.loc file)
% For format, see >> topo... |
github | pylance/BCI-GEM-Pipeline-master | compmap.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/compmap.m | 9,132 | utf_8 | 91717f8d02db6c0193adc7ece08828ca | % compmap() - Plot multiple topoplot() maps of ICA component topographies
% Click on an individual map to view separately.
% Usage:
% >> compmap (winv,'eloc_file',compnos,'title',rowscols,labels,printflag)
%
% Inputs:
% winv - Inverse weight matrix = EEG scalp maps. Each column is a
% ... |
github | pylance/BCI-GEM-Pipeline-master | topoimage.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/topoimage.m | 21,312 | utf_8 | 952b9066313797fa812f1352f2586565 | % topoimage() - plot concatenated multichannel time/frequency images
% in a topographic format
% Uses a channel location file with the same format as topoplot()
% or else plots data on a rectangular grid of axes.
% Click on individual images to examine separatel... |
github | pylance/BCI-GEM-Pipeline-master | getallmenuseeglab.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/getallmenuseeglab.m | 3,609 | utf_8 | 3f20087025ca923857b9ce9ec4553255 | % getallmenuseeglab() - get all submenus of a window or a menu and return
% a tree. The function will also look for callback.
%
% Usage:
% >> [tree nb] = getallmenuseeglab( handler );
%
% Inputs:
% handler - handler of the window or of a menu
%
% Outputs:
% tree - text output
% nb ... |
github | pylance/BCI-GEM-Pipeline-master | loglike.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/loglike.m | 1,238 | utf_8 | b9a8aa64d20e0fc72257880d837f9f19 | % loglike() - log likehood function to estimate dependence between components
%
% Usage: f = loglike(W, S);
%
% Computation of the log-likelihood function under the model
% that the ICs are 1/cosh(s) distributed (according to the tanh
% nonlinearity in ICA). It does not exactly match for the logistic
% nonlinearity, b... |
github | pylance/BCI-GEM-Pipeline-master | corrimage.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/corrimage.m | 25,394 | utf_8 | aaddb89d7d26c507e8075ec38d644f0a | % corrimage() - compute correlation image between an event and amplitude
% and phase in the time-frequency domain.
%
% Usage:
% corrimage(data, sortvar, times);
% [times, freqs, alpha, sigout, limits ] = corrimage(data, sortvar, ...
% times, 'key1', val1, 'key2'... |
github | pylance/BCI-GEM-Pipeline-master | dendhier.m | .m | BCI-GEM-Pipeline-master/scripts/eeglab13_4_4b/functions/miscfunc/dendhier.m | 1,290 | utf_8 | 4ad99782a7d86d471c4ce68b9a0dbf1e | % DENDHIER: Recursive algorithm to find links and distance coordinates on a
% dendrogram, given the topology matrix.
%
% Usage: [links,topology,node] = dendhier(links,topology,node)
%
% links = 4-col matrix of descendants, ancestors, descendant
% distances, and ancest... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.