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

Function fadeFactor

graph-ui/src/lib/density.ts:33–39  ·  view source on GitHub ↗
(nodeCount: number)

Source from the content-addressed store, hash-verified

31const NODE_BOOST_FLOOR = 0.8;
32
33function fadeFactor(nodeCount: number): number {
34 if (nodeCount <= NODE_REFERENCE_COUNT) return 0;
35 return Math.min(
36 1,
37 (nodeCount - NODE_REFERENCE_COUNT) / (NODE_FADE_END - NODE_REFERENCE_COUNT),
38 );
39}
40
41export function bloomIntensityScale(nodeCount: number): number {
42 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