View source: R/EulerCharacteristic.R
| euler_characteristic | R Documentation |
\chi of a simplicial complexCompute the Euler characteristic \chi of a simplicial complex
euler_characteristic(simplices, tol)
simplices |
A list of simplices (each a numeric vector). |
tol |
Optional numerical tolerance to pass to |
The Euler characteristic is computed as:
\chi = \sum_{k=0}^{k_{\max}} (-1)^k \beta_k
where \beta_k is the kth Betti number, and k_{\max} is the highest dimension of any simplex in the complex.
Interpretation of values:
\chi = 2: Sphere-like surfaces
\chi = 1: Disk-like spaces
\chi = 0: Torus-like or circle-like spaces
\chi < 0: Surfaces with multiple handles or genus
An integer representing the Euler characteristic \chi.
betti_number
simplices <- list(c(1, 2), c(3, 4), c(2, 1, 3), c(4, 2))
euler_characteristic(simplices, tol=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.