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
cd6156a3
Commit
cd6156a3
authored
Sep 04, 2019
by
Julian Kosciessa
Browse files
Add HPF changes to coarse-graining back in
parent
758633dc
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
ft_entropyanalysis.m
View file @
cd6156a3
...
...
@@ -320,11 +320,17 @@ for s = 1:numel(timescales) % loop through timescales
nchan
=
size
(
data_sel
.
trial
{
1
},
1
);
end
% do point skipping
% do point skipping
for scales > 1, non-HP option
cg_data
=
{};
switch
coarsegrainmethod
case
'filtskip'
if
strcmp
(
filtmethod
,
'hp'
)
nloops
=
1
;
% keep original sampling rate
stepSize
=
1
;
else
nloops
=
sc
;
stepSize
=
sc
;
end
cg_data
=
cell
(
nloops
,
1
);
% make cell: cg_data{istart}{trials}(chan-by-time)
resamp_x
=
data_sel
.
trial
;
for
is
=
1
:
nloops
% loop over starting points here!
...
...
@@ -333,7 +339,7 @@ for s = 1:numel(timescales) % loop through timescales
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
if
sc
==
1
||
strcmp
(
filtmethod
,
'hp'
)
% no coarse graining for native sampling rate
or high-pass entropy
cg_data
{
1
}
=
data_sel
.
trial
;
%only keep trial data
else
% coarse-grain time series at this time scale
nchan
=
size
(
data_sel
.
trial
{
1
},
1
);
...
...
ft_entropyanalysis.m~
0 → 100644
View file @
cd6156a3
This diff is collapsed.
Click to expand it.
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