expectation_box: Hyperbox expectation

Description Usage Arguments Value Examples

View source: R/hypervolume_expectation.R

Description

Generates expectation hypervolume corresponding to an axis-aligned hyperbox that minimally encloses the data.

Usage

1
expectation_box(input, point.density = NULL, num.samples = NULL, use.random = FALSE)

Arguments

input

A m x n matrix or data frame, where m is the number of observations and n is the dimensionality.

point.density

The point density of the output expectation. If NULL, defaults to v / num.points where d is the dimensionality of the input and v is the volume of the hypersphere.

num.samples

The number of points in the output expectation. If NULL, defaults to 10^(3+sqrt(ncol(d))) where d is the dimensionality of the input. num.points has priority over point.density; both cannot be specified.

use.random

If TRUE and the input is of class Hypervolume, sets boundaries based on the @RandomPoints slot; otherwise uses @Data.

Value

A Hypervolume-class object corresponding to the expectation.

Examples

1
2
data(iris)
e_box <- expectation_box(iris[,1:3])

hypervolume documentation built on Nov. 17, 2017, 6:21 a.m.