Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2915
function
clamp(value, min, max) {
2916
return
Math.min(max, Math.max(min, value));
2917
}
2918
2919
function
softmax(values) {
2920
if
(!values.length)
return
[];
Callers
11
applyConnectionThreshold
Function · 0.85
applyConnectionThickness
Function · 0.85
initializeAdvancedSettings
Function · 0.85
applyThickness
Function · 0.85
applyStrength
Function · 0.85
updateBrushSettings
Method · 0.85
applyBrush
Method · 0.85
setPixels
Method · 0.85
updateSelectedConnectionColors
Method · 0.85
applyNodeColors
Method · 0.85
applyConnectionColors
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected