MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / normalizeThreshold

Function normalizeThreshold

examples/sampling/main.ts:78–82  ·  view source on GitHub ↗
(value: string | null)

Source from the content-addressed store, hash-verified

76};
77
78const normalizeThreshold = (value: string | null): number => {
79 const n = Number(value);
80 if (!Number.isFinite(n)) return 2000;
81 return Math.max(2, Math.floor(n));
82};
83
84type SamplingControls = Readonly<{
85 mode: SeriesSampling;

Callers 1

applyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected