Learn R Programming

wavethresh (version 4.6.1)

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)

Arguments

u
One of the vectors
v
The other of the vectors

Value

  • The sum of squares difference between the two vectors

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