aim2dat.fct.hull

Functions to determine the different types of hulls for function values.

Module Contents

Functions

get_convex_hull(points[, lower_hull, upper_hull, ...])

Get convex hull from a list of n-dimensional points using scipy.

get_minimum_maximum_points(points)

Get minimum and maximum values for each x-value.

aim2dat.fct.hull.get_convex_hull(points, lower_hull=True, upper_hull=True, tolerance=0.001)[source]

Get convex hull from a list of n-dimensional points using scipy.

So far this method only works for 2-dimensional data.

Parameters:
  • points (list) – List of points with shape (npoints, ndim).

  • lower_hull (bool) – Whether to include the lower part of the hull (values below zero).

  • upper_hull (bool) – Whether to include the upper part of the hull (values above zero).

  • tolerance (float) – Tolerance parameter for lower and upper hull.

aim2dat.fct.hull.get_minimum_maximum_points(points)[source]

Get minimum and maximum values for each x-value.

Parameters:

points (list) – List of points with shape (npoints, ndim).

Returns:

  • x_values (list) – x-values.

  • min_values (list) – Minimum y-value for each point.

  • max_values (list) – Maximum y-value for each point.