Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ssetNext

The next subset


Description

Returns for a subset the next subset

Usage

ssetNext(set)

Arguments

set

the size of the full set, or the indexes of subset for which the next we will

Details

When it is a natural number, then the program take it as the size of the full set, and returns the indicator of the first subset, which is a zero vector of the given length. If it is zero-one vector, then it read it as a subset indicator, and returns the indicator of the lexicographic next subset.

Value

The next subset in lexicographic oder.

See Also

Examples

ssetNext(4)# 0 0 0 0
ssetNext(c(1,0,1,0)) #  1 0 1 1 
ssetNext(c(0,1,1,1)) #  1 0 0 0
ssetNext(c(1,1,1,1)) #  4

polyMatrix

Infrastructure for Manipulation Polynomial Matrices

v0.3.1
MIT + file LICENSE
Authors
Tamas Prohle [aut], Peter Prohle [aut], Nikolai Ryzhkov [aut, cre], Ildiko Laszlo [aut] (<https://orcid.org/0000-0003-2324-8183>), Ulas Onat Alakent [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.