fuseData: Fuse Data

Description Usage Arguments Value Examples

View source: R/kMatrixIntegr.R

Description

Fuse Data

Usage

1
fuseData(DATA, coeff = "mean", kernels, h = NULL)

Arguments

DATA

A list of the *m* data to fuse

coeff

A vector of length *m* with the weight of each kernel data, or length(m) - 1 if the last coefficient is 1 - sum(coeff). If absent, all data is considered equally important.

kernels

A vector of length *m* with the kernels to use in each data

h

Kernel hyperparameter (gamma)

Value

A consensus kernel matrix (via calling KInt)

Examples

1
2
3
4
5
d <- list()
d[[1]] <- matrix(abs(rnorm(20)),nrow=4,ncol=5)
d[[2]] <- matrix(abs(rnorm(20)),nrow=4,ncol=5)
fuseData(DATA=d,kernel=c("jac","crbf"))
fuseData(DATA=d,kernel=c("jac","crbf"),coeff=c(0.9,0.1))

Yuliaxis/kernInt documentation built on Feb. 20, 2022, 12:38 a.m.