| rmsd {simtrait} | R Documentation |
Root mean square deviation
Description
Calculates the euclidean distance between two vectors x and y divided by the square root of the lengths of the vectors.
NA values are ignored by default when calculating the mean squares (so the denominator is the number of non-NA differences).
Usage
rmsd(x, y, na.rm = TRUE)
Arguments
x |
The first vector to compare (required). |
y |
The second vector to compare (required).
Lengths of |
na.rm |
If |
Value
the square root of the mean square difference between x and y, after removing NA comparisons (cases where either is NA).
Examples
x <- rnorm(10)
y <- rnorm(10)
rmsd( x, y )
[Package simtrait version 1.1.3 Index]