Skip to content

Commit

Permalink
feat: state.subState and state.rawDetailedMahalanobis(point)
Browse files Browse the repository at this point in the history
  • Loading branch information
piercus committed Sep 25, 2020
1 parent 94fd498 commit 7fffe39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class State {
subState(selectedIndexes) {
return new State({
mean: selectedIndexes.map(i => this.mean[i]),
covariance: subSquareMatrix(this.mean, selectedIndexes),
covariance: subSquareMatrix(this.covariance, selectedIndexes),
index: this.index
});
}
Expand Down

0 comments on commit 7fffe39

Please sign in to comment.