Rev Language Reference


normalize

Usage

normalize(RealPos[] x, RealPos sum)

Arguments

x : RealPos[] (pass by const reference)
The vector of numbers.
sum : RealPos (pass by const reference)
The sum the vector will have after normalization.
Default : 1

Return Type