scalarizeWeights: Scalarize weight matrizes.

View source: R/helpers.R

scalarizeWeightsR Documentation

Scalarize weight matrizes.

Description

Given a list of weight matrizes weight.mats and a vector of numeric weights, the function returns a single weight matrix. Each component of the resulting matrix is the weighted sum of the corresponding components of the weight matrizes passed.

Usage

scalarizeWeights(weight.mats, lambdas)

Arguments

weight.mats

[list]
List of weight matrizes.

lambdas

[numeric]
Vector of weights.

Value

[matrix]


jakobbossek/rmoco documentation built on March 21, 2023, 9:09 p.m.