Description Usage Arguments Details Value References See Also Examples

The function `whv_rect()`

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.

1 2 3 4 5 6 7 8 9 10 |

`data` |
( |

`rectangles` |
( |

`reference` |
( |

`maximise` |
( |

`ideal` |
( |

`scalefactor` |
( |

TODO

A single numerical value.

`read_datasets()`

, `eafdiff()`

, `choose_eafdiff()`

, `whv_hype()`

1 2 3 4 5 6 7 8 9 10 11 12 | ```
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))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.