mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Better approximate average retention/ease/difficulty
Our average calculation is based on pre-binned values, so it's not entirely accurate, but using the midpoint of the bin brings us closer. In the future we can solve this by calculating it on the Rust end instead.
This commit is contained in:
parent
00da2ac27b
commit
129157eb21
3 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ export function prepareData(
|
|||
const tableData = [
|
||||
{
|
||||
label: tr.statisticsAverageDifficulty(),
|
||||
value: xTickFormat(sum(Array.from(allEases.entries()).map(([k, v]) => k * v)) / total),
|
||||
value: xTickFormat(sum(Array.from(allEases.entries()).map(([k, v]) => (k + 2.5) * v)) / total),
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ export function prepareData(
|
|||
const tableData = [
|
||||
{
|
||||
label: tr.statisticsAverageEase(),
|
||||
value: xTickFormat(sum(Array.from(allEases.entries()).map(([k, v]) => k * v)) / total),
|
||||
value: xTickFormat(sum(Array.from(allEases.entries()).map(([k, v]) => (k + 2.5) * v)) / total),
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ export function prepareData(
|
|||
const tableData = [
|
||||
{
|
||||
label: tr.statisticsAverageRetrievability(),
|
||||
value: xTickFormat(sum(Array.from(allEases.entries()).map(([k, v]) => k * v)) / total),
|
||||
value: xTickFormat(sum(Array.from(allEases.entries()).map(([k, v]) => (k + 2.5) * v)) / total),
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue