| 命名空间 | 枚举 | 函数
aggregation.hpp 文件参考

用于指定基于聚合的 API(例如 groupby、reductions、rolling 等)所需的聚合的表示。 更多...

#include <cudf/types.hpp>
#include <cudf/utilities/export.hpp>
#include <functional>
#include <memory>
#include <vector>

转到此文件的源代码。

class  cudf::aggregation
 用于在 aggregation_request 中指定所需聚合的抽象基类。 更多...
 
class  cudf::rolling_aggregation
 旨在用于 rolling_window 特定聚合用法的派生类。 更多...
 
class  cudf::groupby_aggregation
 旨在用于 groupby 特定聚合用法的派生类。 更多...
 
class  cudf::groupby_scan_aggregation
 旨在用于 groupby 特定扫描用法的派生类。 更多...
 
class  cudf::reduce_aggregation
 旨在用于 reduction 用法的派生类。 更多...
 
class  cudf::scan_aggregation
 旨在用于 scan 用法的派生类。 更多...
 
class  cudf::segmented_reduce_aggregation
 旨在用于 segmented reduction 用法的派生类。 更多...
 

命名空间

 cudf
 cuDF 接口
 

枚举

enum class  cudf::rank_method : int32_t {
  cudf::FIRST , cudf::AVERAGE , cudf::MIN , cudf::MAX ,
  cudf::DENSE
}
 用于对列进行排名的平局处理方法。 更多...
 
enum class  cudf::rank_percentage : int32_t { cudf::NONE , cudf::ZERO_NORMALIZED , cudf::ONE_NORMALIZED }
 返回的排名是否应为百分比,并提及百分比归一化的类型。 更多...
 
enum class  cudf::udf_type : bool { CUDA , PTX }
 用户定义函数字符串中的代码类型。
 
enum class  cudf::correlation_type : int32_t { PEARSON , KENDALL , SPEARMAN }
 相关方法的类型。
 
enum class  cudf::ewm_history : int32_t { INFINITE , FINITE }
 处理 EWM 输入值首个值的方式。
 

函数

template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_sum_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_product_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_min_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_max_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_count_aggregation (null_policy null_handling=null_policy::EXCLUDE)
 创建 COUNT 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_any_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_all_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_histogram_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_sum_of_squares_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_mean_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_m2_aggregation ()
 创建 M2 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_variance_aggregation (size_type ddof=1)
 创建 VARIANCE 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_std_aggregation (size_type ddof=1)
 创建 STD 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_median_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_quantile_aggregation (std::vector< double > const &quantiles, interpolation interp=interpolation::LINEAR)
 创建 QUANTILE 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_argmax_aggregation ()
 创建 ARGMAX 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_argmin_aggregation ()
 创建 ARGMIN 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_nunique_aggregation (null_policy null_handling=null_policy::EXCLUDE)
 创建 NUNIQUE 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_nth_element_aggregation (size_type n, null_policy null_handling=null_policy::INCLUDE)
 创建 NTH_ELEMENT 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_row_number_aggregation ()
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_ewma_aggregation (double const center_of_mass, ewm_history history)
 创建 EWMA 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_rank_aggregation (rank_method method, order column_order=order::ASCENDING, null_policy null_handling=null_policy::EXCLUDE, null_order null_precedence=null_order::AFTER, rank_percentage percentage=rank_percentage::NONE)
 创建 RANK 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_collect_list_aggregation (null_policy null_handling=null_policy::INCLUDE)
 创建 COLLECT_LIST 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_collect_set_aggregation (null_policy null_handling=null_policy::INCLUDE, null_equality nulls_equal=null_equality::EQUAL, nan_equality nans_equal=nan_equality::ALL_EQUAL)
 创建 COLLECT_SET 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_lag_aggregation (size_type offset)
 创建 LAG 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_lead_aggregation (size_type offset)
 创建 LEAD 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_udf_aggregation (udf_type type, std::string const &user_defined_aggregator, data_type output_type)
 创建基于 UDF(用于 PTX 或 CUDA)的聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_host_udf_aggregation (std::unique_ptr< host_udf_base > host_udf)
 创建 HOST_UDF 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_merge_lists_aggregation ()
 创建 MERGE_LISTS 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_merge_sets_aggregation (null_equality nulls_equal=null_equality::EQUAL, nan_equality nans_equal=nan_equality::ALL_EQUAL)
 创建 MERGE_SETS 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_merge_m2_aggregation ()
 创建 MERGE_M2 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_merge_histogram_aggregation ()
 创建 MERGE_HISTOGRAM 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_covariance_aggregation (size_type min_periods=1, size_type ddof=1)
 创建 COVARIANCE 聚合的工厂函数。 更多...
 
template<typename Base = aggregation>
std::unique_ptr< Base > cudf::make_correlation_aggregation (correlation_type type, size_type min_periods=1)
 创建 CORRELATION 聚合的工厂函数。 更多...
 
template<typename Base >
std::unique_ptr< Base > cudf::make_tdigest_aggregation (int max_centroids=1000)
 创建 TDIGEST 聚合的工厂函数。 更多...
 
template<typename Base >
std::unique_ptr< Base > cudf::make_merge_tdigest_aggregation (int max_centroids=1000)
 创建 MERGE_TDIGEST 聚合的工厂函数。 更多...
 

详细描述

用于指定基于聚合的 API(例如 groupby、reductions、rolling 等)所需的聚合的表示。

注意
并非所有聚合 API 都支持所有聚合操作。请参阅各个函数的文档以了解支持哪些聚合。

定义于文件 aggregation.hpp