Skip to content

Commit

Permalink
2 file edited
Browse files Browse the repository at this point in the history
  • Loading branch information
Croc-Prog-github authored Jul 23, 2024
1 parent b6ee164 commit fbc52f0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/Probability-Manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ProbabilityManager {
this.instances = {};
}

toArray() {
/*toArray() {
const result = [];
for (const [instanceName, lists] of Object.entries(this.instances)) {
for (const [listName, list] of Object.entries(lists)) {
Expand All @@ -102,5 +102,5 @@ class ProbabilityManager {
}
}
return result;
}
}*/
}
12 changes: 12 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,17 @@
clearAll() {
this.instances = {};
}

toArray() {
const result = [];
for (const [instanceName, lists] of Object.entries(this.instances)) {
for (const [listName, list] of Object.entries(lists)) {
for (const { object, probability } of list.objects) {
result.push([instanceName, listName, object, probability]);
}
}
}
return result;
}
}
</script>

0 comments on commit fbc52f0

Please sign in to comment.