MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / calculateLearningTrend

Function calculateLearningTrend

frontend/src/utils/stats.ts:21–29  ·  view source on GitHub ↗
(
  sessions: PracticeSessionStats[] | undefined,
)

Source from the content-addressed store, hash-verified

19}
20
21export function calculateLearningTrend(
22 sessions: PracticeSessionStats[] | undefined,
23): number | null {
24 if (!sessions || sessions.length < 2) return null
25 const firstRate = calculateSessionSuccessRate(sessions[0])
26 const lastRate = calculateSessionSuccessRate(sessions[sessions.length - 1])
27 if (firstRate === null || lastRate === null) return null
28 return lastRate - firstRate
29}

Callers 1

StatsSummaryGridFunction · 0.90

Calls 1

Tested by

no test coverage detected