MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / fadeFactor

Function fadeFactor

graph-ui/src/galaxy/density.ts:68–74  ·  view source on GitHub ↗
(nodeCount: number)

Source from the content-addressed store, hash-verified

66const NODE_BOOST_FLOOR = 0.8;
67
68function fadeFactor(nodeCount: number): number {
69 if (nodeCount <= NODE_REFERENCE_COUNT) return 0;
70 return Math.min(
71 1,
72 (nodeCount - NODE_REFERENCE_COUNT) / (NODE_FADE_END - NODE_REFERENCE_COUNT),
73 );
74}
75
76export function bloomIntensityScale(nodeCount: number): number {
77 return 1 - fadeFactor(nodeCount) * (1 - BLOOM_FLOOR);

Callers 2

bloomIntensityScaleFunction · 0.85
nodeBoostScaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected