fnormalise: Normalize a Numeric Vector to the 0-1 Range

View source: R/RcppExports.R

fnormaliseR Documentation

Normalize a Numeric Vector to the 0-1 Range

Description

This function normalizes a numeric vector so that its values are scaled to lie within the 0 to 1 range. If all elements in the vector are identical, the function returns a vector of ones.

Usage

fnormalise(x)

Arguments

x

A numeric vector to be normalized.

Value

A numeric vector with values scaled between 0 and 1.


ChristK/CKutils documentation built on April 11, 2025, 10:11 p.m.