Learn R Programming

wavethresh (version 4.7.3)

ssq: 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)

Value

The sum of squares difference between the two vectors

Arguments

u

One of the vectors

v

The other of the vectors

Author

G P Nason

Details

Description says all

Examples

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

Run the code above in your browser using DataLab