uvisbox.Modules.ProbabilisticMarchingTriangles.probabilistic_marching_triangles_stats

Module Contents

uvisbox.Modules.ProbabilisticMarchingTriangles.probabilistic_marching_triangles_stats.probabilistic_marching_triangles_summary_statistics(ensemble_data, triangle_mesh, isovalue)[source]

Compute level crossing probability for probabilistic marching triangles.

This function calculates the probability of an isocontour crossing through each triangle in a 2D triangular mesh based on an ensemble of scalar fields.

Parameters:
  • ensemble_data (np.ndarray) – 2D array of shape (n_points, n_ensemble) where each column is a realization and each row corresponds to a mesh vertex.

  • triangle_mesh (np.ndarray) – 2D array of shape (n_triangles, 3) containing vertex indices.

  • isovalue (float) – The isovalue for which to compute the contour crossing probability.

Returns:

Contains level_crossing_probability, a 1D array of shape (n_triangles,) with values from 0 to 1.

Return type:

dict