blob: 21d6bcdfd8c17604f7fa3c3b7db01d49747fabd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gensvm.grid.R
\name{gensvm.rank.score}
\alias{gensvm.rank.score}
\title{Compute the ranks for the numbers in a given vector}
\usage{
gensvm.rank.score(x)
}
\arguments{
\item{x}{array of numeric values}
}
\details{
This function computes the ranks for the values in an array. The highest
value gets the smallest rank. Ties are broken by assigning the smallest
value.
}
\examples{
x <- c(7, 0.1, 0.5, 0.1, 10, 100, 200)
gensvm.rank.score(x)
[ 4 6 5 6 3 2 1 ]
}
|