makeStartEndPoints: Makes start- and end-points for the batches.

Description Usage Arguments Details

View source: R/makeStartEndPoints.R

Description

The start- and end-points are used for dividing the data into batches.

Usage

1
makeStartEndPoints(batchSize, numRows)

Arguments

batchSize

Desired batch size

numRows

Number of rows of the data

Details

If the data is not divisible by the batchSize the last batch will contain the rest of the data. The function returns a list with in which the first entry is a list with the values for the start and end points for reading the data matrix. The second entry is the number of batches.


darch documentation built on May 29, 2017, 8:14 p.m.