Go to the documentation of this file.
21 #include <cudf/tdigest/tdigest_column_view.hpp>
58 std::vector<double>
const& q,
96 std::vector<double>
const& q,
99 std::vector<order>
const& column_order = {},
100 std::vector<null_order>
const& null_precedence = {},
Class definitions for (mutable)_table_view
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::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Returns the rows of the input corresponding to the requested quantiles.
Given a column_view containing tdigest data, an instance of this class provides a wrapper on the comp...
@ LINEAR
Linear interpolation between i and j.
Class definitions for cudf::scalar.
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
Type declarations for libcudf.
interpolation
Interpolation method to use when the desired quantile lies between two data points i and j.
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::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Computes quantiles with interpolation.
A set of cudf::column_view's of the same size.
sorted
Indicates whether a collection of values is known to be sorted.
std::unique_ptr< column > percentile_approx(tdigest::tdigest_column_view const &input, column_view const &percentiles, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Calculate approximate percentiles on an input tdigest column.