Learn R Programming

binhf (version 1.0-3)

norm: Euclidean norm

Description

Calculates the root squared error of two vectors.

Usage

norm(x,y)

Arguments

x

input data vector

y

input data vector

Value

e

error between the two input vectors

Examples

Run this code
# NOT RUN {
#generate data:

x<-y<-runif(100)

error<-norm(x,y)


#this is the difference between the vectors.

# }

Run the code above in your browser using DataLab