quantiles.hpp
前往此文件的文档。
1 /*
2  * Copyright (c) 2019-2024, NVIDIA CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * https://apache.ac.cn/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include <cudf/scalar/scalar.hpp>
22 #include <cudf/types.hpp>
23 #include <cudf/utilities/export.hpp>
25 
26 namespace CUDF_EXPORT cudf {
57 std::unique_ptr<column> quantile(
58  column_view const& input,
59  std::vector<double> const& q,
60  interpolation interp = interpolation::LINEAR,
61  column_view const& ordered_indices = {},
62  bool exact = true,
65 
97 std::unique_ptr<table> quantiles(
98  table_view const& input,
99  std::vector<double> const& q,
100  interpolation interp = interpolation::NEAREST,
101  cudf::sorted is_input_sorted = sorted::NO,
102  std::vector<order> const& column_order = {},
103  std::vector<null_order> const& null_precedence = {},
106 
130 std::unique_ptr<column> percentile_approx(
131  tdigest::tdigest_column_view const& input,
132  column_view const& percentiles,
135  // 组结束
137 } // namespace CUDF_EXPORT cudf
作为元素列的设备数据的非拥有、不可变视图,其中一些元素可能为空,如...
一组大小相同的 cudf::column_view。
给定一个包含 tdigest 数据的 column_view,此类的实例提供了对组件的包装...
std::unique_ptr< column > percentile_approx(tdigest::tdigest_column_view const &input, column_view const &percentiles, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
计算输入 tdigest 列上的近似百分位数。
std::unique_ptr< column > quantile(column_view const &input, std::vector< double > const &q, interpolation interp=interpolation::LINEAR, column_view const &ordered_indices={}, bool exact=true, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
计算带插值的分位数。
std::unique_ptr< table > quantiles(table_view const &input, std::vector< double > const &q, interpolation interp=interpolation::NEAREST, cudf::sorted is_input_sorted=sorted::NO, std::vector< order > const &column_order={}, std::vector< null_order > const &null_precedence={}, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
返回对应于请求分位数的输入行。
rmm::cuda_stream_view const get_default_stream()
获取当前默认流。
rmm::device_async_resource_ref get_current_device_resource_ref()
获取当前设备内存资源引用。
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
interpolation
当所需分位数位于两个数据点 i 和 j 之间时使用的插值方法。
定义: types.hpp:192
sorted
表示已知值集合是否已排序。
定义: types.hpp:167
cuDF 接口
定义: host_udf.hpp:37
cudf::scalar 的类定义。
(可变)_table_view 的类定义
tdigest 数据 API
libcudf 的类型声明。