MCPcopy Create free account
hub / github.com/DFin/Neural-Network-Visualisation / clamp

Function clamp

assets/main.js:2915–2917  ·  view source on GitHub ↗
(value, min, max)

Source from the content-addressed store, hash-verified

2913}
2914
2915function clamp(value, min, max) {
2916 return Math.min(max, Math.max(min, value));
2917}
2918
2919function softmax(values) {
2920 if (!values.length) return [];

Callers 11

applyConnectionThresholdFunction · 0.85
applyConnectionThicknessFunction · 0.85
applyThicknessFunction · 0.85
applyStrengthFunction · 0.85
updateBrushSettingsMethod · 0.85
applyBrushMethod · 0.85
setPixelsMethod · 0.85
applyNodeColorsMethod · 0.85
applyConnectionColorsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected