convex_comb: Computes convex combinations of two vectors

View source: R/utils.R

convex_combR Documentation

Computes convex combinations of two vectors

Description

Given two vectors and one or multiple coefficients in [0,1], convex combinations of vectors are computed.

Usage

convex_comb(w, x, y, simplify = TRUE)

Arguments

w

numeric in [0,1] (multiple values are allowed).

x, y

numeric vectors of equal length.

simplify

if TRUE a matrix is returned; if FALSE the output will be a list.


plot3logit documentation built on Dec. 20, 2025, 1:07 a.m.