Skip to content

Commit

Permalink
ml
Browse files Browse the repository at this point in the history
  • Loading branch information
mzusin committed Feb 20, 2024
1 parent 3152eb5 commit ac8ae5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/statistics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,8 @@ export const getVariance = (data: number[], decimalPlaces = Infinity) : number|u
const sum = data.reduce((acc, val) => acc + ((val - mean) ** 2), 0);

return setDecimalPlaces(sum / data.length, decimalPlaces);
};

export const getStandardDeviation = (data: number[], decimalPlaces = Infinity) => {

};

0 comments on commit ac8ae5a

Please sign in to comment.