Polar
¶
Bases: BaseTransform
Saves the polar coordinates (distance and angle in \([0, 2\pi)\)) of linked nodes of 2D graphs 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
|
Example:
Source code in mlx_graphs/transforms/point_cloud.py
from mlx_graphs.transforms import Polar · mlx_graphs/transforms/point_cloud.py