Learn R Programming

caRamel (version 1.4)

boxes: Box numbering for each points individual of the population

Description

This function returns a box number for each points individual of the population

Usage

boxes(points, prec)

Value

vector of numbers for the boxes. boxes[i] gives the number of the box containing points[i].

Arguments

points

: matrix of the objectives

prec

: (double, length = nobj) desired accuracy for the objectives (edges of the boxes)

Author

Fabrice Zaoui

Examples

Run this code
# Definition of the parameters
points <- matrix(rexp(200), 100, 2)
prec <- c(1.e-3, 1.e-3)
# Call the function
res <- boxes(points, prec)

Run the code above in your browser using DataLab