Description Usage Arguments Details Value
Takes an ideal point and and alternative and returns the requested number of points that are on the indifference curve for the alternative. The function can take into account different distance metrics, and the salience voters have over the different issue dimensions.
1 2 3 4 5 6 7 8 | findICPoints(
voterID,
idealPoint,
altPointVector,
orderScalar,
salienceVector,
precision = 0.01
)
|
idealPoint |
An ideal point for a voter. |
altPointVector |
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. |
precision |
How precise you want the IC to be. The lower the precision the higher the number points on the IC that are found. |
Possible TODO: Could add a simplify from <boost/geometry/algorithms/simplify.hpp> to possibaly decrease the number of points in each IC.
indifferencePoints A set of points that are on the indifference curve.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.