isInICFromPointAndIC: isInICFromPointAndIC

Description Usage Arguments Value

View source: R/RcppExports.R

Description

This function takes an alternative and an indifference curve and checks to see if the point is in the indifference curve. The more general function isInICFromPointAndIdeals() will take an alternative and a set of ideal points as its arguments.

Usage

1
isInICFromPointAndIC(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 an indifference curve. 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 findICPoints() generates a matrix that meets all of these requrements.

Value

Logical that is TRUE if the alt is inside the agents indifference curve and FALSE if the alt is not inside the agents indifference curve. NOTE: Being inside the indifference curve is equivalent to being in the agents preferred-to-set.


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