19#include <rmm/cuda_stream_view.hpp>
20#include <rmm/device_uvector.hpp>
21#include <rmm/mr/device/device_memory_resource.hpp>
73template <
typename IdInputIt,
74 typename PointInputIt,
75 typename TimestampInputIt,
77 typename PointOutputIt,
78 typename TimestampOutputIt,
79 typename OffsetType = std::int32_t>
83 PointInputIt points_first,
84 TimestampInputIt timestamps_first,
85 IdOutputIt ids_output_first,
86 PointOutputIt points_output_first,
87 TimestampOutputIt timestamps_output_first,
88 rmm::cuda_stream_view stream = rmm::cuda_stream_default,
89 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
120template <
typename IdInputIt,
121 typename PointInputIt,
122 typename TimestampInputIt,
124 typename IndexT = iterator_value_type<IdInputIt>>
128 PointInputIt points_first,
129 TimestampInputIt timestamps_first,
130 OutputIt distances_and_speeds_first,
131 rmm::cuda_stream_view stream = rmm::cuda_stream_default);
139#include <cuspatial/detail/trajectory/derive_trajectories.cuh>
140#include <cuspatial/detail/trajectory/trajectory_distances_and_speeds.cuh>
std::unique_ptr< rmm::device_uvector< OffsetType > > 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.
OutputIt 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.