From cf9cbb37ea8aaf9be16d8147e8d73d07ad87deb2 Mon Sep 17 00:00:00 2001 From: lenarddome Date: Mon, 15 Aug 2022 17:05:20 +0100 Subject: [PATCH] :fire: remove redundant code --- src/pspGlobal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pspGlobal.cpp b/src/pspGlobal.cpp index e103729..9ea01a6 100644 --- a/src/pspGlobal.cpp +++ b/src/pspGlobal.cpp @@ -253,8 +253,8 @@ List pspGlobal(Function model, List control, bool save = false, dimensions, radius); jumping_distribution = jumping_distribution + last_eval.rows(underpopulated); jumping_distribution = ClampParameters(jumping_distribution, lower, upper); - jumping_distribution.shed_rows(find(counts > population)); + // allocate cube for ordinal predictions cube ordinal(stimuli, stimuli, jumping_distribution.n_rows); // evaluate jumping distributions @@ -272,6 +272,7 @@ List pspGlobal(Function model, List control, bool save = false, jumping_distribution.rows(include), last_eval); storage = OrdinalCompare(storage, ordinal.slices(include)); + // update counts of ordinal patterns counts = CountOrdinal(storage, ordinal, counts); underpopulated = find( counts < 300 );