xdem.EPC.subsample#
- EPC.subsample(subsample, return_indices=False, random_state=None)#
- Overloads:
self, subsample (int | float), return_indices (Literal[False]), random_state (int | np.random.Generator | None) → NDArrayNum
self, subsample (int | float), return_indices (Literal[True]), random_state (int | np.random.Generator | None) → tuple[NDArrayNum, …]
self, subsample (float | int), return_indices (bool), random_state (int | np.random.Generator | None) → NDArrayNum | tuple[NDArrayNum, …]
Randomly sample the point cloud. Only valid values are considered.
- Parameters:
- Returns:
Array of sampled valid values, or array of sampled indices.