Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • b5db932
  • /
  • AnniceNajafi-RMCDA-a9d304b
  • /
  • man
  • /
  • apply.PROMOTHEE.Rd
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:c03deeba2023ad10850a52364bbb587fe3dd18cb
directory badge
swh:1:dir:47ed3a57e41a5b6f44dca61047374ff981d1655e

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
apply.PROMOTHEE.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MCDA_methods.R
\name{apply.PROMOTHEE}
\alias{apply.PROMOTHEE}
\title{Function for applying PROMOTHEE I or II}
\usage{
apply.PROMOTHEE(A, weights, type = "II")
}
\arguments{
\item{A}{the comparison matrix with the row names indicating the alternatives and colnames
indicating the criteria.}

\item{weights}{the weights of criteria.}
}
\value{
the results of PROMOTHEE
}
\description{
Function for applying PROMOTHEE I or II
}
\examples{
A <- matrix(c(250, 200, 300, 275, 16, 16, 32, 32, 12, 8, 16, 8, 5, 3, 4, 2), nrow=4)
rownames(A)<-c("Mobile 1", "Mobile 2", "Mobile 3", "Mobile 4")
colnames(A)<-c("Price", "Memory", "Camera", "Looks")
weights <- c(0.35, 0.25, 0.25, 0.15)
apply.PROMOTHEE(A, weights)
}

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API