findSuperElipseRadius: superElipseRadius

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Returns the distance between the center of a super elipse and a point on the elipse. The distance is mesured in the "order" of the superelipse. This order is the same as the minkowski order for distance.

Usage

1
findSuperElipseRadius(idealPoint, altPoint, orderScalar, salienceVector)

Arguments

idealPoint

An ideal point for a voter.

altPoint

An alternative in the choice set.

orderScalar

Order for the voter's distance metric. 1 is the Manhattan Distance, 2 is the Cartesian Distance and 100000 is the Chebechev Distance. You can choose any integer inbetween.

salienceVector

The salience the voter has for each issue dimension. The element that coresponds to the least salient matrix is a 1 and all the other dimensions have their salience measured relative to that dimension.

Value

indifferencePoints A set of points that are on the indifference curve.


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