Skip to content

Commit

Permalink
🔥 remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
lenarddome committed Aug 15, 2022
1 parent f39d574 commit cf9cbb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pspGlobal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 );
Expand Down

0 comments on commit cf9cbb3

Please sign in to comment.