dot-cx_comb: Convex Combination

Description Usage Arguments Value Author(s) Examples

Description

Computes a convex combination of two vectors of the same length

Usage

1
.cx_comb(x, y, w)

Arguments

x

A vector.

y

A vector of the same length as x.

w

A weight vector of the same length as x.

Value

A vector of the same length as x and y.

Author(s)

J. Gross, A. Moeller.

Examples

1
2
3
4
5
6
7
## Not run: 
x <- c(1, 2, 3)
y <- c(3, 2, 1)
w <- c(1/2, 1/3, 1/2)
.cx_comb(x, y, w)

## End(Not run)

JuGross/ensAR documentation built on May 10, 2019, 8:23 a.m.