#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <rmm/resource_ref.hpp>
#include <iterator>
#include <memory>
#include <cuspatial/detail/trajectory/derive_trajectories.cuh>
#include <cuspatial/detail/trajectory/trajectory_distances_and_speeds.cuh>
转到此文件的源代码。
|
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::device_async_resource_ref mr=rmm::mr::get_current_device_resource()) |
| 从对象 ID、点和时间戳派生轨迹。
|
|
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) |
| 计算轨迹中对象的总距离(米)和平均速度(米/秒)。
|
|