| getBestPolyhedron | R Documentation |
This function takes in input two polyhedrons, the reference one and the moving one (or set of facets). It returns in output a really close polyhedron, to the reference one, with the set of facets. It runs a minimization program on a distance using the intersections of a set of lines and the two polyhedrons and validate the moving polyhedron with a volume indicator.
getBestPolyhedron( A, B, nbLines, maxiter, thresholdIndic, quad = F, verbose = 2, seed = 123456, fixFaces, VERTRawDetails, draw_range = c(-15000, 15000), other_ranges = NULL, remove_last_ptdf = T, uniform_volume_draw = FALSE )
A |
|
B |
|
nbLines |
|
maxiter |
|
thresholdIndic |
|
quad |
|
verbose |
|
seed |
|
fixFaces |
|
VERTRawDetails |
|
## Not run:
library(data.table)
library(quadprog)
library(linprog)
polyhedra <- readRDS(system.file("testdata/polyhedra.rds", package = "fbAntares"))
A <- polyhedra[Date == "2019-02-14"]
B <- polyhedra[Date == "2019-02-15"]
nbLines <- 10000
maxiter <- 20
thresholdIndic <- 0.9
quad <- F
getBestPolyhedron(
A = A, B = B, nbLines = nbLines, maxiter = maxiter,
thresholdIndic = thresholdIndic, quad = quad)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.