Skip to content

Commit

Permalink
stats: support scoring of single item vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianFranzen committed May 13, 2024
1 parent 0e8cda5 commit 9fc9aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/constraints/score.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const getStats = (arr: number[]): Stats => {
const arrQ75 = arr.length !== 0 ? q75(arr) : 0;
const arrQ90 = arr.length !== 0 ? q90(arr) : 0;
const arrMean = arr.length !== 0 ? mean(arr) : 0;
const arrStd = arr.length !== 0 ? std(arr) : 0;
const arrStd = arr.length > 1 ? std(arr) : 0;

return {
values: arr,
Expand Down

0 comments on commit 9fc9aa0

Please sign in to comment.