View source: R/getIntersectionLinesHyperplanes.R
evalInter | R Documentation |
This function returns and indicator between 0 and 1 where 0 means the intersection between A and B is empty and 1 means A == B. Since there is no fast metric to compute the volume of a polyhedron in high dimension, this indicator is computed by generating n points in a n-dimensonal space doing the ratio of the points in the two polyhedra and the points in at least one of the polyhedra.
evalInter( A, B, nbPoints = 50000, seed = 123456, draw_range = c(-15000, 15000), other_ranges = NULL, direction = NULL, remove_last_ptdf = T, uniform_volume_draw = FALSE )
A |
|
B |
|
nbPoints |
|
seed |
|
draw_range |
The range in which the points for the volume assessment should be drawn |
other_ranges |
|
direction |
|
remove_last_ptdf |
|
uniform_volume_draw |
|
## Not run: library(data.table) polyhedra <- readRDS(system.file("testdata/polyhedra.rds", package = "fbAntares")) A <- polyhedra[Date == "2019-02-14"] B <- polyhedra[Date == "2019-02-15"] nbPoints <- 50000 evalInter(A = A, B = B, nbPoints = nbPoints) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.