Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Statistics[Rank] - rank data items according to their numeric values
Calling Sequence
Rank(X, options)
Parameters
X
-
data sample
options
(optional) equation(s) of the form option=value where option is one of order or output; specify options for the Rank function
Description
For a data set X of size n, the Rank command ranks the elements of X according to their floating-point values.
By default, an array of ranks is returned, that is an array of distinct integers between 1 and n. By default the elements of X are ranks in the ascending order. Note that if i is different from j then and will receive distinct ranks even if data[i] = data[j].
The first parameter X is the data set (list or Array).
Options
The options argument can contain one or more of the options shown below.
order=ascending or descending -- Indicate whether the elements of X should be ranked in the ascending or descending order. The default value is order=ascending.
output=table -- By default (output=rtable) different elements of X receive different ranks even if the two elements have the same numeric value. If this option is set to output=table then the elements of X will be ranked according to their position in the sorted sample with all multiple occurrences removed.
Notes
Each element of X can be any Maple expression, but this expression must be able to be evaluated to a floating-point number. Failure to evaluate to do so will generate an exception.
If the output option is set to output=table all elements in X must be of type numeric.
The Rank command leaves the original data set X unchanged.
Examples
Rank the elements of A in the ascending order.
Reorder the elements of A according to their ranks.
Reorder the elements of A in the descending order.
Build the ranks table.
See Also
Statistics, Statistics[Computation], Statistics[Sort]
Download Help Document