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

Function pulseOf

graph-ui/src/agents/agent-motion.ts:256–268  ·  view source on GitHub ↗
(events: number)

Source from the content-addressed store, hash-verified

254 * Aussage ueber die Bedeutung von "viel" waere, die niemand gemessen hat.
255 */
256export function pulseOf(events: number): Pulse {
257 if (!Number.isFinite(events) || events <= 0) {
258 return NO_PULSE;
259 }
260 const share = Math.min(1, (events - 1) / Math.max(1, PULSE_BUSY_EVENTS - 1));
261 return {
262 periodMs: Math.round(PULSE_SLOW_MS + (PULSE_FAST_MS - PULSE_SLOW_MS) * share),
263 amplitude: Number(
264 (PULSE_MIN_AMPLITUDE + (PULSE_MAX_AMPLITUDE - PULSE_MIN_AMPLITUDE) * share).toFixed(4),
265 ),
266 events,
267 };
268}
269
270/**
271 * Die Groesse des Koerpers zu dieser Zeit, als Vielfaches seiner Ruhegroesse.

Callers 4

actorFunction · 0.90
viewOfFunction · 0.90
actorFunction · 0.90

Calls

no outgoing calls

Tested by 2

actorFunction · 0.72
actorFunction · 0.72