infer_initial_trajectory: Infer an initial trajectory through space

View source: R/trajectory_inference.R

infer_initial_trajectoryR Documentation

Infer an initial trajectory through space

Description

infer_initial_trajectory infers an initial trajectory for infer_trajectory by clustering the points and calculating the shortest path through cluster centers. The shortest path takes into account the euclidean distance between cluster centers, and the density between those two points.

Usage

infer_initial_trajectory(space, k)

Arguments

space

A numeric matrix or a data frame containing the coordinates of samples.

k

The number of clusters

Value

the initial trajectory obtained by this method


rcannood/SCORPIUS documentation built on July 30, 2023, 11:08 p.m.