Skip to content

Commit

Permalink
wip refactoring closedloopidentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Steinar Elgsæter committed Dec 6, 2024
1 parent 21fdded commit 9a2388e
Show file tree
Hide file tree
Showing 4 changed files with 236 additions and 48 deletions.
8 changes: 6 additions & 2 deletions Dynamic/Identification/ClosedLoopGainGlobalSearchResults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,16 @@ double[] Scale(double[] v_in)
// as a "tiebreaker"

if (v1_Strength == 0 && v2_Strength == 0 && v3_Strength == 0)
{/*
{
// quite frequently the algorithm arrives here, where all the three "strengths" are zero.
// if there is a persistent disturbance like a randomwalk or sinus

// only thing is that in randowmalk case, this tend to over-estimate gain consistently by about 10-40%
if (v4_Strength > 0)
{
return new Tuple<UnitModel, bool>(new UnitModel(unitParametersList.ElementAt(min_ind_v4)), true);
}
else*/
else
{
return new Tuple<UnitModel, bool>(null, false);
}
Expand Down
Loading

0 comments on commit 9a2388e

Please sign in to comment.