Learn R Programming

UStatBookABSC (version 1.0.0)

InnerProduct: Computes the Euclidean inner product

Description

Computes the Euclidean inner product

Usage

InnerProduct(a, b, na.rm)

Arguments

a
a numeric vector
b
another numeric vector
na.rm
logical

Value

a real number

Examples

Run this code
 x <- c(1, 2, 3)
 y <- c(3, 0, 1)
 InnerProduct(x, y)



Run the code above in your browser using DataLab