whv_rect | R Documentation |
Calculates the hypervolume weighted by a set of rectangles (with zero weight outside the rectangles). The function total_whv_rect()
calculates the total weighted hypervolume as hypervolume()
+ scalefactor * abs(prod(reference - ideal)) * whv_rect()
. The details of the computation are given by \citetDiaLop2020ejor.
whv_rect(data, rectangles, reference, maximise = FALSE)
total_whv_rect(
data,
rectangles,
reference,
maximise = FALSE,
ideal = NULL,
scalefactor = 0.1
)
data |
( |
rectangles |
( |
reference |
( |
maximise |
( |
ideal |
( |
scalefactor |
( |
TODO
A single numerical value.
read_datasets()
, eafdiff()
, choose_eafdiff()
, whv_hype()
rectangles <- as.matrix(read.table(header=FALSE, text='
1.0 3.0 2.0 Inf 1
2.0 3.5 2.5 Inf 2
2.0 3.0 3.0 3.5 3
'))
whv_rect (matrix(2, ncol=2), rectangles, reference = 6)
whv_rect (matrix(c(2, 1), ncol=2), rectangles, reference = 6)
whv_rect (matrix(c(1, 2), ncol=2), rectangles, reference = 6)
total_whv_rect (matrix(2, ncol=2), rectangles, reference = 6, ideal = c(1,1))
total_whv_rect (matrix(c(2, 1), ncol=2), rectangles, reference = 6, ideal = c(1,1))
total_whv_rect (matrix(c(1, 2), ncol=2), rectangles, reference = 6, ideal = c(1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.