MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getActiveMonthIndexes

Function getActiveMonthIndexes

packages/core/src/query/contact-scoring.ts:80–84  ·  view source on GitHub ↗
(activeMonths: readonly string[])

Source from the content-addressed store, hash-verified

78}
79
80function getActiveMonthIndexes(activeMonths: readonly string[]): number[] {
81 return [...new Set(activeMonths.map(parseMonthIndex).filter((month): month is number => month !== null))].sort(
82 (a, b) => a - b
83 )
84}
85
86export function rankPercentiles<T>(items: readonly T[], valueSelector: (item: T) => number): Map<T, number> {
87 const result = new Map<T, number>()

Callers 2

computePrivateRegularityFunction · 0.85
computeFriendScoresFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected