libcuspatial  24.04.00
Loading...
Searching...
No Matches
Functions
trajectory.cuh File Reference
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <iterator>
#include <memory>
#include <cuspatial/detail/trajectory/derive_trajectories.cuh>
#include <cuspatial/detail/trajectory/trajectory_distances_and_speeds.cuh>

Go to the source code of this file.

Functions

template<typename IdInputIt , typename PointInputIt , typename TimestampInputIt , typename IdOutputIt , typename PointOutputIt , typename TimestampOutputIt , typename OffsetType = std::int32_t>
std::unique_ptr< rmm::device_uvector< OffsetType > > cuspatial::derive_trajectories (IdInputIt ids_first, IdInputIt ids_last, PointInputIt points_first, TimestampInputIt timestamps_first, IdOutputIt ids_output_first, PointOutputIt points_output_first, TimestampOutputIt timestamps_output_first, rmm::cuda_stream_view stream=rmm::cuda_stream_default, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Derive trajectories from object ids, points, and timestamps.
 
template<typename IdInputIt , typename PointInputIt , typename TimestampInputIt , typename OutputIt , typename IndexT = iterator_value_type<IdInputIt>>
OutputIt cuspatial::trajectory_distances_and_speeds (IndexT num_trajectories, IdInputIt ids_first, IdInputIt ids_last, PointInputIt points_first, TimestampInputIt timestamps_first, OutputIt distances_and_speeds_first, rmm::cuda_stream_view stream=rmm::cuda_stream_default)
 Compute the total distance (in meters) and average speed (in m/s) of objects in trajectories.