isInParetoSetFromPointAndPS: isInParetoSetFromPointAndPS

Description Usage Arguments Value

View source: R/RcppExports.R

Description

This function takes an alternative and a pareto set and checks to see if the point is in the pareto set. The more general function isInParetoSetFromPointAndIdeals() will take an alternative and a set of ideals as its arguments.

Usage

1
isInParetoSetFromPointAndPS(aSexpPoint, aSexpMatrix)

Arguments

aSexpPoint

An R vector (SEXP) that contains the corrdinates of the alternative that you want to check.

aSexpMatrix

An R matrix (SEXP) that contains all the points that define a pareto set. The set of points should progress clockwise or counter clockwise as you go down the rows of the matrix and the first and last rows should of the matrix should be the same. The function findParetoSet() generates a matrix that meets all of these requrements.

Value

Logical that is TRUE if the alt is in the pareto set and FALSE of the alt is not in the pareto set.


robiRagan/voteR documentation built on Feb. 27, 2020, 6:48 p.m.