Description Usage Arguments Details Value Author(s) See Also Examples
A function to get the L2 norm.
1 |
sample |
A numeric matrix containing values to be compared (e.g. a set of mutant SHAPE traces). |
base |
An optional numeric vector containing the values to which the samples are to be compared (e.g. a wildtype SHAPE trace). Default is the first trace in sample. |
margin |
An optional number indicating if the samples are organized by rows or columns, where 1 indicates rows and 2 indicates columns. Default is 1. |
This function calculates the L2 norm between the base vector and each row (or column) in sample.
A numeric vector of L2 norm values.
Chanin Tolson
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.