Minor tweaks to Flocking analysis demo

This commit is contained in:
Joseph Lizier 2023-07-26 14:48:55 +10:00
parent 23bfeded27
commit d920b1e9a9
3 changed files with 6 additions and 2 deletions

View File

@ -102,7 +102,7 @@ properties.estimator = 'kraskov';
% Properties for JIDT estimators:
properties.jidt.kNNs = 4; % Number of nearest neighbours for Kraskov algorithm: just use 4 (default)
properties.jidt.autoDynamicCorrelationExclusion = true; % Exclude nearest neighbours from at least the same target transition from being included in counts for TE. This requires the Econometrics Toolbox in Matlan in order to call autocorr. Set to false if you don't have that to avoid this being called.
properties.jidt.autoDynamicCorrelationExclusion = true; % Exclude nearest neighbours from at least the same target transition from being included in counts for TE. This requires the Econometrics Toolbox in Matlab in order to call autocorr. Set to false if you don't have that to avoid this being called.
properties.aisNumSurrogates = 0; % Number of surrogate calculations to run for AIS (just to see the noise floor. 0 means skip)
properties.teNumSurrogates = 0; % Number of surrogate calculations to run for TE (just to see the noise floor. 0 means skip)

View File

@ -81,11 +81,11 @@ if (isfield(properties, 'kRange') || isfield(properties, 'tauRange'))
maxAIStau = properties.tauRange(1);
aisForKAndTau = zeros(length(properties.kRange), length(properties.tauRange));
kIndex = 0;
tauIndex = 0;
for k = properties.kRange
kIndex = kIndex + 1;
properties.k = k;
minTau = min(properties.tauRange);
tauIndex = 0;
for tau = properties.tauRange
tauIndex = tauIndex + 1;
if ((k == 1) && (tau > minTau))

View File

@ -31,6 +31,10 @@ if (nargin < 3)
refreshRate = 0.1;
end
if (nargin < 4)
zoomIn = true;
end
% load preprocessed data using the function specified in properties.loadScript
if (properties.data3d)
[x,y,z] = feval(properties.loadScript, dataFileName, properties);