mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 05:23:13 +00:00
Bugfix
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user