Skip to main content
aggregate_convex_hull(table_name=None, x_column_name=None, y_column_name=None, options=)[source]

Calculates and returns the convex hull for the values in a table specified by input parameter table_name.

Parameters

table_name (str) –

Name of table on which the operation will be performed. Must be an existing table, in [schema_name.]table_name format, using standard name resolution rules.

x_column_name (str) –

Name of the column containing the x coordinates of the points for the operation being performed.

y_column_name (str) –

Name of the column containing the y coordinates of the points for the operation being performed.

options (dict of str to str) –

Optional parameters. The default value is an empty dict ( ).

Returns

A dict with the following entries–

x_vector (list of floats) –

Array of x coordinates of the resulting convex set.

y_vector (list of floats) –

Array of y coordinates of the resulting convex set.

count (int) –

Count of the number of points in the convex set.

is_valid (bool) –

Indicates whether a valid convex hull could be computed for the input.

info (dict of str to str) –

Additional information.