points_stats
PointsStats
Class for computing statistics within the distance.
Attributes:
| Name | Type | Description |
|---|---|---|
coords |
Coordinates of the points |
|
neighbors |
Pair of neighbor indexes |
coords = coords
instance-attribute
neighbors = None
instance-attribute
__init__(coords)
Initialize.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coords |
ndarray[N, 3]
|
Coordinates of the points |
required |
make_neighbors(radius=10)
Find pairs of points which form neighborhoods.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
radius |
int
|
All points within |
10
|
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray[M, 2]: Pair of neighbors |
max(scalars)
Calculate the maximum of scalars within the neighborhood.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scalars |
ndarray[N]
|
Array of scalar values. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray[N,]: Maximum values in neighborhoods. |
mean(scalars)
Calculate the mean of scalars within the neighborhood.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scalars |
ndarray[N]
|
Array of scalar values. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray[N,]: Mean values in neighborhoods. |
std(scalars)
Calculate the standard deviation of scalars within the neighborhood.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scalars |
ndarray[N]
|
Array of scalar values. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray[N,]: Standard deviation values in neighborhoods. |