bestCombination: Partition of a number into two factors

View source: R/magic.dim.R

bestCombinationR Documentation

Partition of a number into two factors

Description

Given a prime number factorization x, bestCombination partitions x into two groups, such that the product of the numbers in group one is as similar as possible to the product of the numbers of group two. This is useful in magic.dim.

Usage

bestCombination(x)

Arguments

x

prime number factorization

Value

a vector c(prod(set1),prod(set2))


surveillance documentation built on Nov. 4, 2024, 3 a.m.