pub struct GeometricGraphBuilder;Expand description
Geometric graph construction methods
Implementations§
Source§impl GeometricGraphBuilder
impl GeometricGraphBuilder
Sourcepub fn knn_graph(
points: &[Point3D],
k: usize,
features: Option<Tensor>,
) -> Result<GraphData, TorshError>
pub fn knn_graph( points: &[Point3D], k: usize, features: Option<Tensor>, ) -> Result<GraphData, TorshError>
Build k-nearest neighbors graph from point cloud
Sourcepub fn radius_graph(
points: &[Point3D],
radius: f32,
features: Option<Tensor>,
) -> Result<GraphData, TorshError>
pub fn radius_graph( points: &[Point3D], radius: f32, features: Option<Tensor>, ) -> Result<GraphData, TorshError>
Build radius graph (connect all points within radius)
Sourcepub fn delaunay_graph_2d(
points: &[(f32, f32)],
features: Option<Tensor>,
) -> Result<GraphData, TorshError>
pub fn delaunay_graph_2d( points: &[(f32, f32)], features: Option<Tensor>, ) -> Result<GraphData, TorshError>
Build Delaunay triangulation graph (2D simplified version)
Auto Trait Implementations§
impl Freeze for GeometricGraphBuilder
impl RefUnwindSafe for GeometricGraphBuilder
impl Send for GeometricGraphBuilder
impl Sync for GeometricGraphBuilder
impl Unpin for GeometricGraphBuilder
impl UnsafeUnpin for GeometricGraphBuilder
impl UnwindSafe for GeometricGraphBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more