uvisbox.Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra_stats

Module Contents

uvisbox.Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra_stats.probabilistic_marching_tetrahedra_summary_statistics(ensemble_data, tetrahedral_mesh, isovalue)[source]

Compute level crossing probability for probabilistic marching tetrahedra.

This function calculates the probability of an isosurface crossing through each tetrahedron in a 3D tetrahedral 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.

  • tetrahedral_mesh (np.ndarray) – 2D array of shape (n_tetrahedra, 4) containing vertex indices.

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

Returns:

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

Return type:

dict