2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00
This commit is contained in:
2023-03-29 23:08:40 +03:00
parent 1d48d97dbe
commit 5966598c9f
2 changed files with 2 additions and 20 deletions

View File

@ -160,7 +160,8 @@ namespace Esiur.Analysis.Coding
decision[0].Parent = branch;
decision[1].Parent = branch;
nodes = nodes.Skip(2).Append(branch).OrderBy(x => x.Frequency).ToList();
// remove processed branches, append the new branch and sort by probability
nodes = nodes.Skip(CodeSet.ElementsCount).Append(branch).OrderBy(x => x.Frequency).ToList();
}
// create tree