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

split_costs

Split costs in blocks


Description

Split costs in consecutive blocks using a greedy algorithm that tries to find blocks of even total cost.

Usage

split_costs(costs, nb_split)

Arguments

costs

Vector of costs (e.g. proportional to computation time).

nb_split

Number of blocks.

Value

A matrix with 4 columns lower, upper, size and cost.

Examples

split_costs(costs = 150:1, nb_split = 3)
split_costs(costs = rep(1, 151), nb_split = 3)
split_costs(costs = 150:1, nb_split = 30)

bigparallelr

Easy Parallel Tools

v0.3.1
GPL-3
Authors
Florian Privé [aut, cre]
Initial release

We don't support your browser anymore

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