Skip to content

Commit bd82999

Browse files
authored
Fix threshold initialization in PRank and OAPBPM (#741)
1 parent 4952b15 commit bd82999

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/model/oapbpm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class OAPBPM {
4545
this._b[j].splice(
4646
this._b[j].length - 1,
4747
0,
48-
...Array(this._min + this._b[j].length - y[k] + 1).fill(this._b[j][this._b[j].length - 2])
48+
...Array(y[k] - (this._min + this._b[j].length) + 1).fill(this._b[j][this._b[j].length - 2])
4949
)
5050
}
5151
}

lib/model/prank.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class PRank {
3434
this._b.splice(
3535
this._b.length - 1,
3636
0,
37-
...Array(this._min + this._b.length - y[k] + 1).fill(this._b[this._b.length - 2])
37+
...Array(y[k] - (this._min + this._b.length) + 1).fill(this._b[this._b.length - 2])
3838
)
3939
}
4040

0 commit comments

Comments
 (0)