ssq {wavethresh} | R 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
[Package wavethresh version 4.7.2 Index]