hoi.utils.landscape — HOI 0.0.5 documentation (original) (raw)

hoi.utils.landscape#

hoi.utils.landscape(x, mult_size, n_bins=100, centered=False, stat='probability', output='numpy')[source]#

Compute the landscape from HOI values.

The landscape represents the how estimates of HOI are distributed per order.

Parameters:

xarray_like

Array of data containing the HOI estimates of shape (n_hoi,)

multi_sizearray_like

Size of the multiplet associated to each HOI estimates. It should be an array of shape (n_hoi,)

n_binsarray_like | 100

Number of bins to use to build the histogram at each order

centeredbool | False

Specify whether bin edges should be centered around zero

stat{‘probability’, ‘frequency’, ‘count’, ‘density’, ‘percent’}

Aggregate statistic to compute in each bin.

output{‘numpy’, ‘pandas’, ‘xarray’} | None

Output type. Use either :

Returns:

landcapearray_like

Returns depend on the output parameter. Check to see what is returned