ssq: Compute sum of squares difference between two vectors

ssqR Documentation

Compute sum of squares difference between two vectors

Description

Given two vectors, u and v, of length n, this function computes \sum_{i=1}^n (u_i - v_i)^2.

Usage

ssq(u,v)

Arguments

u

One of the vectors

v

The other of the vectors

Details

Description says all

Value

The sum of squares difference between the two vectors

Author(s)

G P Nason

Examples

ssq(c(1,2), c(3,4))
#[1] 8

wavethresh documentation built on Sept. 11, 2024, 9:33 p.m.