rotor: Balance Tubes Using Higher-Order Symmetrical Configurations

rotorR Documentation

Balance Tubes Using Higher-Order Symmetrical Configurations

Description

rotor returns the numbers of tubes that can and cannot be loaded in a centrifuge rotor and optionally shows various ways to balance a certain number of tubes.

Usage

rotor(n, k = NULL, seed = 1, elapse = 1)

Arguments

n

an integer, the number of rotor holes.

k

an integer, the number of tubes (optional).

seed

an integer, the seed for random number generation. Setting a seed ensures the reproducibility of the result. See set.seed for more details.

elapse

an integer, the constrained time in seconds for random sampling.

Details

The number of rotor holes n ranges from 4 to 48.

Value

rotor returns a list with two components:

check

a list with three components:

n

the number of rotor holes.

valid

a vector containing the numbers of tubes that can be loaded.

invalid

a vector containing the numbers of tubes that cannot be loaded.

load

a list with three components:

k

the number of tubes.

decompose

a data frame showing different ways to decompose k.

hole

a data frame showing hole positions to load tubes.

visual

a list of rotor images showing hole positions to load tubes.

References

Sivek G. On vanishing sums of distinct roots of unity. Integers. 2010;10(3):365-8.

Peil O, Hauryliuk V. A new spin on spinning your samples: balancing rotors in a non-trivial manner. arXiv preprint arXiv:1004.3671. 2010 Apr 21.

See Also

rotorVerify for verifying the balance of pre-existing tube configurations.

Examples

rotor(30, 7)


centrifugeR documentation built on Dec. 28, 2022, 1:18 a.m.