cmf_extract_subkernels: To extract subkernels

Description Usage Arguments Examples

Description

To extract subkernels

Usage

1
cmf_extract_subkernels(kernels, ind_rows, ind_cols, mfields)

Arguments

kernels
ind_rows
ind_cols
mfields

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (kernels, ind_rows, ind_cols, mfields) 
{
    alphas <- kernels$alphas
    nfields <- length(mfields)
    subkernels <- list()
    subkernels$alphas <- alphas
    for (f in 1:nfields) {
        field <- mfields[f]
        subkernels[[field]] <- list()
        for (ialpha in 1:length(alphas)) {
            subkernels[[field]][[ialpha]] <- kernels[[field]][[ialpha]][ind_rows, 
                ind_cols]
        }
    }
    subkernels
  }

conmolfields documentation built on May 2, 2019, 4:18 p.m.