Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DevTechJr/turboquant_cutile
/ _gaussian_pdf
Function
_gaussian_pdf
turboquant_cutile/codebook.py:14–17 ·
view source on GitHub ↗
(x: float, sigma: float)
Source
from the content-addressed store, hash-verified
12
13
14
def
_gaussian_pdf(x: float, sigma: float) -> float:
15
return
(1.0 / (math.sqrt(2 * math.pi) * sigma)) * math.exp(
16
-x * x / (2 * sigma * sigma)
17
)
18
19
20
def
solve_lloyd_max(
Callers
1
solve_lloyd_max
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected