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((u-v)^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 Nov. 16, 2022, 5:16 p.m.