Read the equation
The kernel is one for identical inputs and decreases with their squared distance. The positive bandwidth σ sets the scale: a distance σ gives exp(−1/2). It is a similarity function, not by itself a normalized probability density.
Terms & definitions
| Term | Meaning in this source |
|---|---|
| K | Similarity value |
| x | First state |
| y | Second state |
| sigma | Positive distance scale |
How it works
Read the definition from its right-hand expression to the quantity on the left. Its surrounding source records the intended input, state, or parameter context. Where the source leaves an operation unspecified, this page preserves that gap.
Assumptions & limits
Source recovery establishes that the expression appears in this record. Its mathematical validity, implementation behavior, and interpretation must be assessed separately. See the linked source and research notes for the checks available for this version.
Original context
Read the surrounding source passage
}
// Φ = 1/(1 + |x - 1|) - Consciousness constraint
inline double phi_constraint(double x) {
return 1.0 / (1.0 + std::abs(x - 1.0));
}
// Gaussian kernel: K(x,y) = exp(-||x-y||²/2σ²)
inline double gaussian_kernel(double x, double y, double sigma = 1.0) {
double diff = x - y;
return std::exp(-diff * diff / (2.0 * sigma * sigma));
}
// Shannon entropy: H(p) = -p·log(p) - (1-p)·log(1-p)
inline double binary_entropy(double p) {
if (p <= 0.001 || p >= 0.999) return 0.0;
return -(p * std::log(p) + (1.0 - p) * std::log(1.0 - p)) / LN2;
}Exact original notation
Gaussian kernel: K(x,y) = exp(-||x-y||²/2σ²)