duplicates
builtin
¶
duplicates(
coords, *, tolerance=0.0, merge=None, weights=None
)
Samples at most tolerance apart, grouped, and optionally merged.
Grouping is transitive: samples further apart share a group when a chain of close samples links them. Groups are numbered by their first row.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coords
|
PointSet or array_like
|
Samples, or their |
required |
tolerance
|
float
|
Largest distance between duplicates; 0 groups samples at exactly the same location. |
0.0
|
merge
|
(mean, first, max)
|
Merge each group into one sample at its first sample's location; needs
a PointSet. Numeric columns become float: |
"mean"
|
weights
|
array_like or str
|
Weights of |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
report |
Table
|
Without |
group |
ndarray of int64
|
Without |
merged |
PointSet
|
With |
used in