add simulation module

This commit is contained in:
Julien Calixte
2023-07-24 23:36:54 +02:00
parent 532ce13796
commit eaac5520e8
11 changed files with 209 additions and 156 deletions

View File

@@ -1,3 +1,6 @@
export const getMean = (data: number[]) =>
Math.round(100 * (sumElements(data) / data.length)) / 100
export const clone = (data: any) => JSON.parse(JSON.stringify(data))
export const shuffleArray = <T>(array: T[]) => {