Start refactoring
This commit is contained in:
parent
6fc53ee51e
commit
9b47d56d8f
39 changed files with 423 additions and 234 deletions
5
frontend/src/scripts/helper/exponential-decay.ts
Normal file
5
frontend/src/scripts/helper/exponential-decay.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export const exponentialDecay = (
|
||||
accumulator: number,
|
||||
nextValue: number,
|
||||
biasOfNextValue: number
|
||||
) => accumulator * (1 - biasOfNextValue) + nextValue * biasOfNextValue;
|
||||
1
frontend/src/scripts/helper/to-percent.ts
Normal file
1
frontend/src/scripts/helper/to-percent.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export const toPercent = (value: number) => `${Math.round(value * 100)}%`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue