NormVec: Unit normalize a vector

View source: R/NormVec.R

NormVecR Documentation

Unit normalize a vector

Description

This function is designed to work internally to functions within SynExtend so it works on relatively simple atomic vectors and has little overhead checking.

Usage

NormVec(vec)

Arguments

vec

A numeric or integer vector.

Details

NormVec unit normalized a vector.

Value

A numeric vector the same length as the input.

Author(s)

Nicholas Cooley npc19@pitt.edu

See Also

NucleotideOverlap, SummarizePairs, WithinSetCompetition, RejectionBy

Examples

x <- NormVec(rnorm(n = 50, mean = 2, sd = 2))

npcooley/SynExtend documentation built on June 8, 2025, 5:24 a.m.