forked from rapidsai/cudf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'branch-0.11' into libcudf++/datetime_ops
- Loading branch information
Showing
94 changed files
with
7,752 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* Copyright (c) 2019, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <cudf/types.hpp> | ||
|
||
#include <memory> | ||
#include <vector> | ||
|
||
/** | ||
* @file aggregation.hpp | ||
* @brief Representation for specifying desired aggregations from | ||
* aggregation-based APIs, e.g., groupby, reductions, rolling, etc. | ||
* | ||
* @note Not all aggregation APIs support all aggregation operations. See | ||
* individual function documentation to see what aggregations are supported. | ||
* | ||
*/ | ||
|
||
namespace cudf { | ||
namespace experimental { | ||
/** | ||
* @brief Base class for abstract representation of an aggregation. | ||
*/ | ||
class aggregation; | ||
|
||
/// Factory to create a SUM aggregation | ||
std::unique_ptr<aggregation> make_sum_aggregation(); | ||
|
||
/// Factory to create a MIN aggregation | ||
std::unique_ptr<aggregation> make_min_aggregation(); | ||
|
||
/// Factory to create a MAX aggregation | ||
std::unique_ptr<aggregation> make_max_aggregation(); | ||
|
||
/// Factory to create a COUNT aggregation | ||
std::unique_ptr<aggregation> make_count_aggregation(); | ||
|
||
/// Factory to create a MEAN aggregation | ||
std::unique_ptr<aggregation> make_mean_aggregation(); | ||
|
||
/// Factory to create a MEDIAN aggregation | ||
std::unique_ptr<aggregation> make_median_aggregation(); | ||
|
||
/** | ||
* @brief Factory to create a QUANTILE aggregation | ||
* | ||
* @param quantiles The desired quantiles | ||
* @param interpolation The desired interpolation | ||
*/ | ||
std::unique_ptr<aggregation> make_quantile_aggregation( | ||
std::vector<double> const& q, interpolation i); | ||
} // namespace experimental | ||
} // namespace cudf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.