R: Compute sum of squares difference between two vectors

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((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

[Package wavethresh version 4.6.8 Index]