View source: R/shape_reconstruction.R
compute_differential_evidence | R Documentation |
Input a region on the mesh, and the function finds N other connected regions of the same size, uniformly sampled from the mesh. The goal is to compare the function values on the input region to those on the N other regions in order to generate the analog of p values.
compute_differential_evidence(
complex,
mesh_fcn,
vertex,
region_size = 100,
num_test_regions = 100,
method = "knn"
)
mesh_fcn |
(1 x M vector) the values of the function on the vertices of the mesh. |
vertex |
(int) the index of the desired vertex to analyze on the mesh |
region_size |
(int) the number of vertices to be in the region. We choose the region via knn. The assumption is that the density if vertices in the mesh is uniform, or at least approximately. |
num_test_regions |
(int) the number of regions to sample from |
method |
(string) the method to use when creating null regions. We currently support 'area' and 'knn'. |
mesh |
mesh3d object. |
sum of function values for the input region, and a vector of length N of the sum of function values for the random test regions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.