obtain_hypercube_vertices: Hypercube vertices

View source: R/miscellaneous.R

obtain_hypercube_verticesR Documentation

Hypercube vertices

Description

Obtains the vertices of the hypercube given Bessel layer information

Usage

obtain_hypercube_vertices(
  bessel_layers,
  vector = rep(0, dim),
  transform_mat = diag(1, dim),
  dim,
  one_point = FALSE
)

Arguments

bessel_layers

a list of length dim where list[[d]] is the Bessel layer for component d, which is a list of length 4 where L denotes the hard lower bound, l denotes the soft lower bound, u denotes the soft upper bound and U denotes the hard upper bound

vector

vector of length dim which we check in each dimension if it occurs within the bounds - default is rep(0, dim)

transform_mat

dim x dim transformation matrix which is applied to the vertices - default is diag(1, dim)

dim

dimension

one_point

logical value (default is FALSE). If TRUE, only returns one point of the hypercube vertex (the one where we take the lower Bessel layer in each dimension). This is useful for when only one hypercube corner is necessary (e.g. higher dimensional problems in logistic regression and NB regression)

Value

A list of length 2 with

vertices

matrix where each row is a vertex of the hypercube

V

matrix where each row is a vertex of the hypercube including points crossing the vector in each dimension


rchan26/hierarchicalFusion documentation built on Sept. 11, 2022, 10:30 p.m.