Sum in Quadrature
Edge weight that weights each edge by the quadrature sum of the differences between its two endpoints, taken over a configurable set of feature columns. For a position triplet this is the Euclidean distance between the two nodes.
weight = sqrt( sum_i (a_i - b_i)^2 )
Configuration
Selected as name: sum-in-quadrature.
Option |
Description |
Type |
Default |
|---|---|---|---|
|
Logical feature column groups summed in quadrature to form the edge weight. |
list[str] |
required |
components:
edges:
name: knn
kwargs:
k: 10
neighbor_cols: [ dom_x, dom_y, dom_z ]
weights:
- name: sum-in-quadrature
kwargs:
cols: [ dom_x, dom_y, dom_z ]
The attribute produced has shape [E, 1].