Distance
¶
Distance(
norm: bool = True,
max_value: Optional[float] = None,
cat: bool = True,
interval: Tuple[float, float] = (0.0, 1.0),
)
Bases: BaseTransform
Saves the Euclidean distance of linked nodes in its edge features.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
norm
|
bool
|
If |
True
|
max_value
|
Optional[float]
|
If set and |
None
|
cat
|
bool
|
If |
True
|
interval
|
Tuple[float, float]
|
The interval of the normalized distances. Default:
|
(0.0, 1.0)
|
Example:
Source code in mlx_graphs/transforms/point_cloud.py
from mlx_graphs.transforms import Distance · mlx_graphs/transforms/point_cloud.py