kernlab (version 0.9-13)

ranking-class: Class "ranking"

Description

Object of the class "ranking" are created from the ranking function and extend the class matrix

Arguments

Objects from the Class

Objects can be created by calls of the form new("ranking", ...).

Extends

Class "matrix", directly.

See Also

ranking

Examples

Run this code
data(spirals)

## create data set to be ranked
ran<-spirals[rowSums(abs(spirals)<0.55)==2,]

## rank points according to "relevance" to point 54 (up left)
ranked<-ranking(ran,54,kernel="rbfdot",kpar=list(sigma=100),edgegraph=TRUE)

ranked
edgegraph(ranked)[1:10,1:10]

Run the code above in your browser using DataCamp Workspace