Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LNDG
mMSE
Commits
a602d86c
Commit
a602d86c
authored
Jun 20, 2019
by
Niels Kloosterman
Browse files
fixed point averaging coarse graining + minor changes
parent
189fd2f2
Changes
1
Show whitespace changes
Inline
Side-by-side
ft_entropyanalysis.m
View file @
a602d86c
...
...
@@ -127,6 +127,10 @@ filtmethod = ft_getopt(cfg, 'filtmethod', 'lp');
mem_available
=
ft_getopt
(
cfg
,
'mem_available'
,
8e9
);
% 8 GB
allowgpu
=
ft_getopt
(
cfg
,
'allowgpu'
,
1
);
% 8 GB
if
strcmp
(
cfg
.
coarsegrainmethod
,
'pointavg'
)
filtmethod
=
'no'
;
% no filtering for point averaging
end
gpuavailable
=
gpuDeviceCount
;
if
allowgpu
&&
gpuavailable
fprintf
(
'GPU device found. Running things there\n'
)
...
...
@@ -328,11 +332,10 @@ for s = 1:numel(timescales) % loop through timescales
end
clear
resamp_x
;
case
'pointavg'
% original point averaging coarse graining, no loop over starting points
nloops
=
1
;
% no starting points loop for point avg
if
sc
==
1
% no coarse graining for native sampling rate
cg_data
{
1
}
=
data_sel
.
trial
;
%only keep trial data
nloops
=
1
;
% no loop across starting points
else
% coarse-grain time series at this time scale
nloops
=
1
;
% no loop across starting points
nchan
=
size
(
data_sel
.
trial
{
1
},
1
);
for
itrial
=
1
:
length
(
data_sel
.
trial
)
num_cg_tpts
=
floor
(
length
(
data_sel
.
trial
{
itrial
})/
sc
);
% number of coarse-grained time points
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment