sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
38fcd5e9b1c63c25c5ca5ca2091dc66002be10ff2c78b0db71b80ef3b0d8335a | License | 11,359 | 204 |
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... |
f5e2c997a7110201fe727af305adf74fd3ca1d0ee2a42955f5bfda4d2286c6f3 | License | 13,777 | 287 | EUROPEAN UNION PUBLIC LICENCE v. 1.2
EUPL © the European Union 2007, 2016
This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined
below) which is provided under the terms of this Licence. Any use of the Work,
other than as authorised under this Licence is prohibited (to the extent such
use is... |
6a4ebd265d2371b976c7fa2051c43c00c6e925bd80f3647c08e3baf130f3ef1d | License | 15,071 | 105 | Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License ("Public License"). To th... |
32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 | License | 17,992 | 340 | GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
... |
231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c | License | 18,002 | 340 | GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Prea... |
204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 | License | 18,009 | 340 | GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.... |
0c61884945d57d688312ad4cd358e77f5ef181368fca226e68f6ae8d94dbd249 | License | 18,650 | 395 | Attribution 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relat... |
b0c68f0cfae57ed3e80196f1de044b6e61475577072cd96ade98cd11205047c5 | License | 18,714 | 157 | BFP: BrainSuite Functional Pipeline
Copyright (C) 2023 The Regents of the University of California and the University of Southern California
Created by Anand A. Joshi, Chitresh Bhushan, Jian Li, Soyoung Choi, David W. Shattuck, Richard M. Leahy
For more information, contact: support@brainsuite.org or
Anand A Jo... |
4b91cd059057484712b7a69d276b7d00bd55ef90f904d6a1aa305c25e920eaf4 | License | 19,102 | 362 | The copyrights of this software are owned by Duke University. As such,
two licenses for this software are offered:
1. An open-source license under the GPLv2 license for non-commercial
use (see below).
2. A custom license with Duke University, for commercial use or for
use without the GPLv2 license restrictions.
As a ... |
ead637ca6fbf05de8591e5a4fefc65d318ad5fced8c2f76e90e5103943dfe796 | License | 19,102 | 362 | The copyrights of this software are owned by Duke University. As such,
two licenses for this software are offered:
1. An open-source license under the GPLv2 license for non-commercial
use (see below).
2. A custom license with Duke University, for commercial use or for
use without the GPLv2 license restrictions.
As a ... |
e62749301ae03a2f6dff887ac692bcf2912e4dd97af3f332d79dc5c9b22f3531 | License | 19,119 | 402 | Attribution-NonCommercial-NoDerivatives 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a ... |
a1d1adec3ba691ef6e377a78bbe9e9e2501f2f4a1723d08857da1ac6564e4fed | License | 20,004 | 425 | Attribution-ShareAlike 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
... |
014e062e7d6b3b9e686bb8cb642479d6cc8bb775d8ee185908b669b8daaf5f2f | License | 21,396 | 515 |
CeCILL-B FREE SOFTWARE LICENSE AGREEMENT
Notice
This Agreement is a Free Software license agreement that is the result
of discussions between its authors in order to ensure compliance with
the two main principles guiding its drafting:
* firstly, compliance with the principles governing the distribution
... |
c86f835ae1464366dd76bc19429c45cdc19acf91688bd6596a06fdca6cf81c99 | License | 21,496 | 452 | Copyright (c) 2024, 2025, 2026. Fundació Privada Institut d’Investigació Oncològica de Vall d’Hebron. All rights reserved.
Vall d'Hebron Institute of Oncology (VHIO)
Cellex Center, Carrer de Natzaret 115-117, 08035, Barcelona, Spain
Tel: +34 932543450
email: info@vhio.net
---
The code released in this repository has ... |
45929d66dfab8f11b2e66fe6c29287324454fb426fa5914ad0791fa574508beb | License | 33,823 | 132 | GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft licen... |
b15ffe346dbc40a7c847f69071c43b686b81712f58b2ebe1036e61a49e18fcbc | License | 34,452 | 661 | GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
... |
57c8ff33c9c0cfc3ef00e650a1cc910d7ee479a8bc509f6c9209a7c2a11399d6 | License | 34,520 | 661 | GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
... |
db49b21d4f023f30f218a6bf0e08b3c790398035dacd653611bd96415362db29 | License | 34,570 | 231 | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software... |
26dd6ef408186664570bfa6e96a516153d623db9fc0f95c36d38ff43af701416 | License | 34,876 | 595 | GNU General Public License
==========================
_Version 3, 29 June 2007_
_Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>_
Everyone is permitted to copy and distribute verbatim copies of this license
document, but changing it is not allowed.
## Preamble
The GNU General Public Lice... |
247fa78da0c5fbb5c898772c2e4a479fbea11ee88f2be31a3324c82556301e97 | License | 34,901 | 595 | GNU General Public License
==========================
_Version 3, 29 June 2007_
_Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>_
Everyone is permitted to copy and distribute verbatim copies of this license
document, but changing it is not allowed.
## Preamble
The GNU General Public Lice... |
0e1372769c3ea4ce2a8fb0955a02adf8e88d1804c6143518dee9f969eb0911f7 | License | 34,915 | 675 | ### GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
<https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
### Preamble
The GNU General Public License is a free, copyleft license ... |
30f65f44be91294f086bda2c8d8bba02cde1ee4b4ef9e89abc623e763f35e082 | License | 34,995 | 222 | Code specific for SPN processing is licensed with a GNU General Public License. BrainVISA software included in the container has other licenses (see https://brainvisa.info/web/download.html#licences). Source code for SPN computation can be found at https://github.com/willsnyder12/sulcal_phenotype_networks, and source c... |
fe3eea6c599e23a00c08c5f5cb2320c30adc8f8687db5fcec9b79a662c53ff6b | License | 35,120 | 674 | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Genera... |
b98fbb37db5b23bc5cfdcd16793206a5a7120a7b01f75374e5e0888376e4691c | License | 35,140 | 674 | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamb... |
6ba8958ca511cabbea23bcb57e17376ab588d101627e18fe811d2bc901116569 | License | 35,150 | 674 | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Pre... |
e05261f9f2d470f63aeef1dc74c909bf6e9a12ce43eda5b412da49857b9716d4 | MATLAB | 31 | 2 | function x = identity(x)
end
|
abd5cea2757f5a374a49ee79dd102e1eeb226b08b1ca07f4fb79124b4163cf38 | MATLAB | 40 | 3 | function b = vect( a )
b = a(:);
end |
65726366a2713e60927c05f249befe8f39afbe30d9282fd3d8a084f72e566a74 | MATLAB | 49 | 2 | function plotHypnogramPolar(config, MuseStruct)
|
9b30f7a157b4a9ee7da2d66c6b006ed7f150651547384435ff5236c65750d60c | MATLAB | 53 | 3 |
%function Tuned = LightTuning(TunedBin, LightBin) |
998af2a5ba402874b646cc4c7f1b86c08b2584a46f592e6c2003cba7e98869de | MATLAB | 59 | 5 | function list = numel2indices(n)
list = 1:n;
end
|
c7dc90c6ada235c0c1e0919bca3952680bf4fe4a74172083f654083ee39ae354 | MATLAB | 59 | 6 | function [a, b] = swap(c, d)
a = d;
b = c;
end
|
1527a04b16716b4502ad5afafdb12de33b08514b0ece85fefebd6e4fbfda2218 | MATLAB | 61 | 5 | function [y] = zscore(x)
y = (x-mean(x))./(std(x));
end |
2126bc925b7300b3115df788af443106215d7e179b2c9e75ed65b13f4b926092 | MATLAB | 63 | 5 | function p_corr = sidak_corr(p, N)
p_corr = 1 - (1-p).^N;
end |
41da16af875fe6eac59d7378879686d27d40f7e9779736a692d78f4512bccc0b | MATLAB | 63 | 6 | %%
function [x] = finites(x)
x = x(isfinite(x));
end
|
74fc6ef9acac4b1e953e8be4ac5101025032508733b5dc4bb236f65a5472f5d4 | MATLAB | 67 | 3 | function y = rms(u)
y = sqrt(sum(u.*conj(u))/max(size(u)));
end |
6b969b0b53840eecf99b2f8a8a49a629120a6df670ec0960308fb8c0a1c90ed7 | MATLAB | 68 | 3 | function result = even_pisco(int)
result = not(rem(int,2));
end
|
a64513a04355ae319a7724b58003d7891bd63d7f64494af516ad629ed191f9b3 | MATLAB | 68 | 7 | %%
%
function [yes] = iszero(x)
yes = (x == 0);
end
|
43178dd18a44ab84cce30440b280112987f66f34aef28c3b75d16ecdd59a52e7 | MATLAB | 73 | 3 | function yes = isInParallel()
yes = ~isempty(getCurrentTask());
end
|
ae58ec134be6c4128cdd2edb5f0028f59e112cd9d94719cb88f0d89c3be20a6c | MATLAB | 73 | 5 | function nowait()
close(findall(0, 'Tag', 'TMWWaitbar'));
end
|
f75f5e1088847518400fa9ac629288c13490c20f837b0d771fb1cc4b61f1118b | MATLAB | 75 | 6 | function out = vect(in)
% Justin Haldar (jhaldar@usc.edu)
out=in(:);
end
|
c79370da92d5e1b397bb9e6d247614cc7d675aa64a7220ab8a70d0a1c077107f | MATLAB | 77 | 5 | function yes = isfunction(f)
yes = isa(f, 'function_handle');
end
|
cd03ee908ebc2fff96003d9c34cd127539e13db806a86339edae3acdfce6e81e | MATLAB | 79 | 4 | function test_available
fprintf("Gadgetron External Matlab Module\n")
end
|
bf54ba95d03cfc4601204b8bd083491ddfcdacc0f45c2d07b367fae6f66a5b0a | MATLAB | 80 | 3 | function mid = read_message_id(socket)
mid = read(socket, 1, 'uint16');
end
|
ae87d9acffcf98c7e7cf8aeb3b2053dff4780f1f9b4f8ce0df70ac1a87e4cd6f | MATLAB | 82 | 5 | function yes = strge(str1, str2)
yes = ( strcmpC(str1, str2) >= 0 );
end
|
bbbe2aa4edf7c42a1602bfb913da046e6c0fef1504d2fad48c8352149e4f6293 | MATLAB | 82 | 2 | function dfF = estimateGCaMPresponse(spikingActivity)
error('not implemented yet') |
b0c28b863fac1f0a46f075c166ec0b66419a7f8a0bf1fe8b40f327cea6170efc | MATLAB | 89 | 6 | %%
function [rounded] = roundTo(x, unit)
rounded = round(x/unit) * unit;
end
|
acdfbed3eb38e9f66f1ff3f5a1df6604915d4782645a632348414a30ec051ef3 | MATLAB | 93 | 4 | function version = gcmi_version
version = '0.5';
fprintf(1,'GCMI Version: %s\n\n', version)
|
ddab34e9d0f0b81c37c070194ab4333870868ad0ab6cc386b93385851355407d | MATLAB | 94 | 6 | %%
function [middle] = rangemid(range)
middle = (range(1) + range(end)) / 2;
end
|
758aceca6fe57ab3f873bd6b26cd4778612fe1da8bddd5182878465bc390f0c1 | MATLAB | 96 | 3 | function cplx = as_interleaved_complex(raw)
cplx = complex(raw(1:2:end), raw(2:2:end));
end
|
2455aff039201f9da16289073c193de35187425efaf2a202e53611a23ff6efe7 | MATLAB | 97 | 4 | %%
function [bin] = findBinUnbounded(x, xCenters)
bin = findBin(x, xCenters, false);
end
|
b41021a02bf3e9b751622e48a235ba701d3c4b88a41f0622373c51aa25765f88 | MATLAB | 97 | 6 | %%
function [middle] = rangemiddle(range)
middle = (range(1) + range(end)) / 2;
end
|
09cc0667afbc3f53c3296186b9d59d3d94e995cfdb0845f37d3e362dba98a6e9 | MATLAB | 100 | 6 | function [x,y] = addr2xy(addr)
y = bitshift(addr, -8);
x = mod(bitshift(addr, -1),128);
end
|
582bb6ee5b8971a91ef318b0382defcdd2fec519b3659dfa6d651f3ca4d558cf | MATLAB | 102 | 4 | function sock = connect(address, port)
sock = socket.Socket(java.net.Socket(address, port));
end
|
a359df6f761c313e8c325b96152cce16551a3d48421636bae15fc7332cc9ad6d | MATLAB | 102 | 8 | %%
%
function [x] = poly1inv(f, y)
p = coeffvalues(f);
x = (y - p(2)) / p(1);
end
|
f2764d51b99bdc6888fa6d9129509c90461ac29de9bcca4c46e5b1a501ef1ec9 | MATLAB | 102 | 5 | function yes = istablecol(t, name)
yes = ismember(name, t.Properties.VariableNames);
end
|
1a5ecfa1fe01eefdb3c9dfa743f9f394b26c61e729e4552cacd349446b566677 | MATLAB | 104 | 3 | function results = run_gcmi_cpp_mex_smoke_tests(varargin)
results = gcmi_cpp_mex_test(varargin{:});
end
|
21865dd6a06ff00110fd4bdff96841f7b5b3dcf84715e702a06f4f3c3c84128b | MATLAB | 104 | 3 | function data = cfftn(data, dims)
for dim = dims, data = gadgetron.lib.fft.cfft(data, dim); end
end
|
58e07ddd91efd139716d7f870c5ab678c9fb80a2be06e8bdfe864436fe469530 | MATLAB | 106 | 3 | function data = cifftn(data, dims)
for dim = dims, data = gadgetron.lib.fft.cifft(data, dim); end
end
|
4f1bd8eba9da2c7d31165017d7211cd9a767353d78b98d0e0392e41417b5f30a | MATLAB | 108 | 5 | %% Bring the Matlab editor into focus
function editwindow()
edit = meditor();
edit.toFront();
end
|
24fe83febde80389733579e9103ab1ae037956588e30587a2efbbbad6192b01e | MATLAB | 111 | 7 | function [Y2, R] = brainSyncT(X, Y)
X = X'; Y = Y';
[Y2, R] = brainSync(X, Y);
Y2 = Y2';
end
|
67f5c9f77dc7b05a502686794631e3be76a4e3b2170cdc56c5c7cb265b094b46 | MATLAB | 111 | 8 | %%
%
function [yes] = isnegative(x)
yes = false(size(x));
yes( x < 0 ) = true;
end
|
cf9ecb2aa20825ed37f63c8cb4d851d37e34bc2f8a4f9c098a1a7d9449b679c0 | MATLAB | 111 | 8 | %%
%
function [yes] = ispositive(x)
yes = false(size(x));
yes( x > 0 ) = true;
end
|
4d74851f51950cd57a5298959933ee338c9a47a493d86a023c7efb3c981700de | MATLAB | 113 | 3 | function config = read_config(socket)
config = gadgetron.external.readers.read_string(socket, 'uint32');
end
|
eb341cd5b6025f4cc5856126940f0631e0701178b58f634e3773533e8d08e794 | MATLAB | 113 | 3 | function header = read_header(socket)
header = gadgetron.external.readers.read_string(socket, 'uint32');
end
|
efccfd58aff459baed8f0a12654421d7b70d8a4c5c6a6ed05f5a664533221ad3 | MATLAB | 116 | 5 | multiActivityMap;
result = compareMaps(allMaps,-1, 5);
save(strcat(experimentName, ' compareMaps.mat'), 'result'); |
bc39b63ef1254ae34fd1674ffcb86e638d4c777a3d7be2e9dd8397621e8bab9b | MATLAB | 117 | 6 | %% Returns a column vector of the non-NaN elements of A.
function s = nonnans(A)
s = A(~isnan(A));
end
|
fb50b16c33af0eec872767860cd7815bd79538929bb82c5c0e656917300c889c | MATLAB | 117 | 4 | function se = strel_sphere(sz)
[x1,y1,z1] = ndgrid(-ceil(sz):ceil(sz));
se = (sqrt(x1.^2 + y1.^2 + z1.^2) <=sz);
end
|
3b5c16969bbe184f6c39ae75cc1a8b2039eef37490dfaeb141e4e56275bb6803 | MATLAB | 118 | 4 | function v = read_vector(socket, type)
n_elm = read(socket, 1, 'uint64');
v = read(socket, n_elm, type)';
end
|
879397dfae6b6aff7919ca040d27961009cf115c1e519a8eacc058c9493e2608 | MATLAB | 118 | 3 | % GCMI MATLAB regression checks.
%
% run_gcmi_regression_tests Execute deterministic smoke and regression checks.
|
6b4727c520fb91e3d5da262afdacca1f6091fcf15517b14e97f94d6dfec87015 | MATLAB | 119 | 8 | %%
function [yes] = isintegral(x)
% Checks if x is integral.
yes = rall(istiny(abs(x - round(x))));
end
|
8377d43ede5e74467c4183f5e33fabdf9c9302038d0c29a03b9a1a318866e877 | MATLAB | 119 | 6 | %% Returns a column vector of the negative elements of A.
function s = negatives(A)
s = A(A(:) < 0);
end
|
b951f2f4163691a8ecffd81834f366907fcaf437b2ba65abc84fa3bc762f81b8 | MATLAB | 119 | 6 | %% Returns a column vector of the positive elements of A.
function s = positives(A)
s = A(A(:) > 0);
end
|
39450796d989637b6f1294b9e312513de165454601e9ae73597b20569384be34 | MATLAB | 122 | 5 | function d = point_to_line(pt, v1, v2)
a = v1 - v2;
b = pt - v2;
d = norm(cross(a,b)) / norm(a);
end |
43754924234517a8053d2dcf341a369fc5ed96d6f549032b521d61de0daa5582 | MATLAB | 123 | 3 | function data = cfft(data, dim)
data = fftshift(fft(ifftshift(data, dim), [], dim), dim) ./ sqrt(size(data, dim));
end
|
43d21797d2982e8b02bcdd3c22a496dcc7895b3fb48b757fb65c1b873cb4e54b | MATLAB | 123 | 3 | function map = palegreen(varargin)
map = [247 255 201 1; 200 242 126 1] / 255;
map = colormap_helper(map, varargin{:});
|
7eb9c5912aebe567e63f38f353c880917031c6e75b249407087de7e68bf2c96f | MATLAB | 123 | 6 | %%
function [yes] = haslimits(range)
yes = hasspan(range) && isfinite(range(1)) && isfinite(range(end));
end
|
93a65ec0f2f8d5c1c72f1828d20c7831f89378814a3b95db6665cd7146f89784 | MATLAB | 125 | 3 | function data = cifft(data, dim)
data = ifftshift(ifft(fftshift(data, dim), [], dim), dim) .* sqrt(size(data, dim));
end
|
2293bb1967da739234bd571a3ffe5c4acedbfaf32df5a56b54e7471782c6bb17 | MATLAB | 126 | 6 | %%
function [yes] = hasspan(range)
yes = isnumeric(range) && numel(range) > 1 && ( range(end) > range(1) );
end
|
b007a4a728ad218be6307d147ccc13e0b748a46e82a59c16edcef8877fe59aea | MATLAB | 126 | 5 | function passthrough(connection)
connection.filter(@(~, ~) false);
tic, gadgetron.consume(@connection.next); toc
end
|
6784f1d4180dc8bef22d0cee6ca0126c4c613afffd22fa8e520366ca1d2905f7 | MATLAB | 127 | 5 | function nt_imagescc(C)
%nt_imagescc - plot image with symmetric scaling
m=max(abs(C(:)));
imagesc(C,[-m-realmin,m+realmin]);
|
6865d31eafa57422137f1ba305d5c7fca0bebee6f3003f510886659d4fa62b7b | MATLAB | 130 | 8 | function fgfig()
fig = findall(0, 'Type', 'figure');
for iFig = 1:numel(fig)
figure(fig(iFig));
end
end
|
96d4937d78c712e19e5faafe30f44007c223edcf0df1fee4dca615821fccd750 | MATLAB | 131 | 6 | function write_vector(socket, vector)
size = uint64(numel(vector));
write(socket, size);
write(socket, vector);
end |
128c9a8c5e54b7d42051930160ef13e60aabf5368b4e14c7329c7f26da05b91e | MATLAB | 134 | 9 | function d = dtwdist(Xi, Xj, varargin)
[m,n] = size(Xj);
d = zeros(m,1);
for j = 1 : m
d(j) = dtw(Xi,Xj(j,:), varargin{:});
end |
2b49f9b5116590b98f4f16907d5836d0f70a27e4fd1e5b15aa3882ae2acab3cc | MATLAB | 135 | 8 | %%
% Returns the middle element.
function [x] = middle(v)
index = ceil( numel(v) / 2 );
x = v(index);
end
|
38bd20c518d72a5c0706916bf178a374a00c0492f5d40514272a4cc43c1a7710 | MATLAB | 137 | 4 | function [axs, index] = nextPanel(pan, index, varargin)
index = index + 1;
axs = selectPanel(pan, index, varargin{:});
end
|
34a1ac61de702f1b85ade5b97d370622a55b65e1b2b3c8cdad5ba1439c85e5f8 | MATLAB | 139 | 6 | function idx = block_index(bi, blocklen, siglen)
start = (bi-1)*blocklen + 1;
finish = min(start+blocklen-1, siglen);
idx = start:finish; |
226025c98fa6d7fd423dc8e10749d93c9f87a5347f1a5e6976bdcceedba67c71 | MATLAB | 140 | 7 | function [value, index] = minabs(array, varargin)
[~, index] = min(abs(array), varargin{:});
value = array(index);
end
|
9368c2fecc24b7a505c7a2cc2cab6bbb5f11605c2f671f74e2edc57135f5fdbe | MATLAB | 140 | 7 | function [yes] = isaxes(x, type)
% ISAXES Returns true if the given item(s) are axes handles.
yes = ishghandle(x, 'axes');
end
|
c111c2610e6b5fef2c0af83ec332054190d776d56c71e05c3cb786078199a27f | MATLAB | 140 | 7 | function [value, index] = maxabs(array, varargin)
[~, index] = max(abs(array), varargin{:});
value = array(index);
end
|
31dee0eca11de0200a4b6b2dc146614856c2e701fe4a00c825e2165bb384c665 | MATLAB | 143 | 10 | classdef AcquisitionStats
properties
end
methods
function self = AcquisitionStats(~)
end
end
end
|
277b1616f0a45b152027beccb41e5e48163b08f51082c4a4a97efc0743d4b962 | MATLAB | 144 | 6 | function cohenf = f2cohenf(F,df1,df2)
% calculate partial eta square from F-value and degrees-of-freedom
cohenf = sqrt((F .* df1) ./ df2);
end |
21a3cc11f0e45704859c11a4caf384f4e9f3aa6581a58153b893e8a498c84cb2 | MATLAB | 146 | 8 | %% function to calculate rate overlap
function ROL = GetRateOverlap(vec1, vec2)
ROL = 1 - abs(vec1-vec2)./(vec1+vec2);
end |
ae46b715159917a69cd5d0868b70ff323101788ef60f5ba6628c19a7755ca829 | MATLAB | 146 | 9 | %% All but the last n elements (default 1)
function y = butlast(x, n)
if nargin < 2
n = 1;
end
y = x(1:end-n);
end
|
e436988952b73f0721317828e89c2f71c899cc9dd4490f7f313b6a8058f1982c | MATLAB | 148 | 9 | %% All but the first n elements (default 1)
function y = butfirst(x, n)
if nargin < 2
n = 1;
end
y = x(n+1:end);
end
|
7bdcef4f4f406e189b227d5b4bfcc37675a3321296e6a00b4d3ba47d4a56aee0 | MATLAB | 151 | 4 | %% function to do mismatch statistics
MisMatchRate = [rate_ordered{1}(:,1); rate_ordered{2}(:,2)];
UniFormRate = unifrnd(0,1, size(MisMatchRate)); |
8e269c1eb31e7dc3595d51a2bef4478e15866116749761d4b60a17cbcd035fb1 | MATLAB | 151 | 6 | function etaSqP = f2etaSqp(F,df1,df2)
% calculate partial eta square from F-value and degrees-of-freedom
etaSqP = (F .* df1) ./ (F .* df1 + df2);
end |
ea2e7b19021a958bf8929588ee55599f99da34aad70f27a42c51f9f739c5bc75 | MATLAB | 152 | 6 | function Joined = MultiOuterJoin(varargin)
Joined = varargin{1};
for k = 2:nargin
Joined = outerjoin(Joined, varargin{k},'MergeKeys', true);
end
end |
0d3b4a23fe5fe660cbd4ff63fe71840258758288fc68671a235e47e8812c3d8a | MATLAB | 154 | 4 | function string = read_string(socket, size)
length = read(socket, 1, size);
string = native2unicode(read(socket, length, 'uint8')', 'UTF-8');
end
|
576dd5493ba0ad9a4cdad9349203eaa3619bbd221e4989a849d4f815a842958a | MATLAB | 154 | 7 | function handle = findParent(handle, type)
while ~isempty(handle) && ~strcmp(get(handle,'Type'), type)
handle = get(handle, 'Parent');
end
end
|
1123ba28f35214ad796b7a4f8d96a656458f82085c36a39bb0d33f99f7e0fd54 | MATLAB | 155 | 8 | %%
function [rMin] = rangemin(range1, range2)
rMin = [ max([range1(1) range2(1)]) ...
, min([range1(2) range2(2)]) ...
];
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.