search for: unit_size

Displaying 3 results from an estimated 3 matches for "unit_size".

Did you mean: init_size
2011 Dec 13
2
Generating input population for microsimulation
...??? 1?? 5????? 0 ? [6,]????? 1?? 6????? 0 ? [7,]????? 1?? 7????? 0 ? [8,]????? 1?? 8????? 0 ? [9,]????? 1?? 9????? 1 ? [10,]??? 1?? 10?? 1 ... I came up with the following code, but am having some trouble getting it to populate my matrix the way I'd like. world <- function(units, pop_size, unit_size){ ??? pid <- rep(0,pop_size) #person ID ??? senior <- rep(0,pop_size) #senior in charge ??? unit_id <- rep(0,pop_size) #unit ID ??? ??? ??? for (i in 1:pop_size){ ??? ??? for (f in 1:units)??? {? ??? ??? senior[i] = sample(c(1,1,0,0,0,0,0,0,0,0), 1, replace = FALSE) ??? ??? pid[i] = samp...
2020 Jul 21
17
[PATCH 00/10] RFC: move logical block size checking to the block core
This patch series aims to move the logical block size checking to the block code. This was inspired by missing check for valid logical block size in virtio-blk which causes the kernel to crash in a weird way later on when it is invalid. I added blk_is_valid_logical_block_size which returns true iff the block size is one of supported sizes. I added this check to virtio-blk, and also converted
2020 Jul 21
17
[PATCH 00/10] RFC: move logical block size checking to the block core
This patch series aims to move the logical block size checking to the block code. This was inspired by missing check for valid logical block size in virtio-blk which causes the kernel to crash in a weird way later on when it is invalid. I added blk_is_valid_logical_block_size which returns true iff the block size is one of supported sizes. I added this check to virtio-blk, and also converted