libcuspatial  24.02.00
Loading...
Searching...
No Matches
Functions
trajectory.hpp File Reference
#include <cudf/column/column.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/table/table.hpp>
#include <cudf/types.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <memory>

Go to the source code of this file.

Functions

std::pair< std::unique_ptr< cudf::table >, std::unique_ptr< cudf::column > > cuspatial::derive_trajectories (cudf::column_view const &object_id, cudf::column_view const &x, cudf::column_view const &y, cudf::column_view const &timestamp, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Derive trajectories from object ids, points, and timestamps.
 
std::unique_ptr< cudf::table > cuspatial::trajectory_distances_and_speeds (cudf::size_type num_trajectories, cudf::column_view const &object_id, cudf::column_view const &x, cudf::column_view const &y, cudf::column_view const &timestamp, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Compute the distance and speed of objects in a trajectory. Groups the timestamp, x, and y, columns by object id to determine unique trajectories, then computes the average distance and speed for all routes in each trajectory.
 
std::unique_ptr< cudf::table > cuspatial::trajectory_bounding_boxes (cudf::size_type num_trajectories, cudf::column_view const &object_id, cudf::column_view const &x, cudf::column_view const &y, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Compute the spatial bounding boxes of trajectories. Groups the x, y, and timestamp columns by object id to determine unique trajectories, then computes the minimum bounding box to contain all routes in each trajectory.