pick.batch.sizes: Picking optimal batch size values

Description Usage Arguments Value Author(s) See Also Examples

View source: R/overlapping.batches.R

Description

Suggest an optimal batch size value for use in map.overlapping.batches

Usage

1
pick.batch.sizes(input.seq, size = 50, overlap = 15, around = 5)

Arguments

input.seq

an object of class sequence.

size

The center size around which an optimum is to be searched

overlap

The desired overlap between batches

around

The range around the center which is maximally allowed to be searched.

Value

An integer value for the size which most evenly divides batches. In case of ties, bigger batch sizes are preferred.

Author(s)

Bastian Schiffthaler, bastian.schiffthaler@umu.se

See Also

map.overlapping.batches

Examples

1
2
3
4
5
## Not run: 
  LG <- structure(list(seq.num = seq(1,800)), class = "sequence")
  batchsize <- pick.batch.sizes(LG, 50, 19)

## End(Not run)

bschiffthaler/BatchMap documentation built on Dec. 16, 2019, 2:22 a.m.