gaussian
gaussian
#
A Gaussian kernel for converting distances to energy values.
Sessions within sigma distance have significant mutual influence.
gaussian(sigma)
#
Create a Gaussian energy function with the given bandwidth.
The kernel is energy(d) = exp(-d² / σ²): 1 at zero distance, ~0.37 at
σ, ~0.02 at 2σ. It maps a numpy array of distances to an array of
energies elementwise.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sigma
|
float
|
Bandwidth parameter controlling how far influence extends. Smaller sigma = more local influence, larger sigma = wider influence. |
required |
Returns:
| Type | Description |
|---|---|
EnergyFunction
|
A function |