Enumerations | |
| enum class | cudf::inclusive { YES , NO } |
| Enum used to define whether or not bins include their boundary points. | |
Functions | |
| std::unique_ptr< column > | cudf::label_bins (column_view const &input, column_view const &left_edges, inclusive left_inclusive, column_view const &right_edges, inclusive right_inclusive, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Labels elements based on membership in the specified bins. More... | |
| std::unique_ptr<column> cudf::label_bins | ( | column_view const & | input, |
| column_view const & | left_edges, | ||
| inclusive | left_inclusive, | ||
| column_view const & | right_edges, | ||
| inclusive | right_inclusive, | ||
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/labeling/label_bins.hpp>
Labels elements based on membership in the specified bins.
A bin i is defined by left_edges[i], right_edges[i]. Whether the edges are inclusive or not is determined by left_inclusive and right_inclusive, respectively.
A value input[j] belongs to bin i if value[j] is contained in the range left_edges[i], right_edges[i] (with the specified inclusiveness) and label[j] == i. If input[j] does not belong to any bin, then label[j] is NULL.
Notes:
input are labeled NULL.input belong to no bin and their corresponding label is NULL.input belong to no bin and their corresponding label is NULL.| cudf::logic_error | if input.type() == left_edges.type() == right_edges.type() is violated. |
| cudf::logic_error | if left_edges.size() != right_edges.size() |
| cudf::logic_error | if left_edges.has_nulls() or right_edges.has_nulls() |
| input | The input elements to label according to the specified bins. |
| left_edges | Values of the left edge of each bin. |
| left_inclusive | Whether or not the left edge is inclusive. |
| right_edges | Value of the right edge of each bin. |
| right_inclusive | Whether or not the right edge is inclusive. |
| stream | CUDA stream used for device memory operations and kernel launches |
| mr | Device memory resource used to allocate the returned column's device. |
input according to the specified bins.