|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.plot.Point
edu.princeton.repeatedgames.rgsolve.polygon.GameExtremePoint
public class GameExtremePoint
This class extends the Point
class.
A GameExtremePoint described a vertex of V*,
and how it is generated
Nested Class Summary | |
---|---|
static class |
GameExtremePoint.CONSTRAINT
An enum type for the player identity of binding incentive constraints |
Field Summary | |
---|---|
int |
a1
Player 1 action generating this point |
int |
a2
Player 2 action generating this point |
GameExtremePoint.CONSTRAINT |
continConstraint
Identity of binding I.C. |
int |
continIndex1
index of point in extreme-point-table used in constructing continuation value |
int |
continIndex2
index of point in extreme-point-table used in constructing continuation value |
private static long |
serialVersionUID
Serialization ID |
GameExtremePoint.CONSTRAINT |
stageConstraint
Identity of binding I.C. |
double |
weight1
Indicates the probability weight on the Extreme Point in continIndex1 . |
Fields inherited from class edu.princeton.plot.Point |
---|
x, y |
Constructor Summary | |
---|---|
GameExtremePoint(double x,
double y)
Simple constructor which sets x- and y-coordinate, leaving other fields uninitialized. |
|
GameExtremePoint(double x,
double y,
int a1,
int a2,
int continIndex1,
int continIndex2,
double weight1,
GameExtremePoint.CONSTRAINT stageConstraint,
GameExtremePoint.CONSTRAINT continConstraint)
Full constructor of a GameExtremePoint detailing
a vertex of V* and how it is generated. |
Method Summary | |
---|---|
void |
contract(double g1,
double g2,
double discount)
This method contracts this point towards g=(g1,g2), i.e. |
GameExtremePoint |
getContraction(double g1,
double g2,
double discount)
This method contracts this point towards g=(g1,g2), i.e. |
Point |
getPoint()
"Upcasts" this GameExtremePoint and returns
an instance of Point with the same coordinates. |
Methods inherited from class edu.princeton.plot.Point |
---|
affineCombo, angleRadians, angleRadiansAbs, clone, deepCopy, dot, dot, equals, euclidDistance, euclidDistance, get, getClockwiseNormal, getNaN, getX, getY, hashCode, interpXonY, interpYonX, isCloseTo, L1norm, L2norm, linearCombo, LInfnorm, minus, norm, normalize, plus, rotate, roundEquals, roundPointList, set, setX, setY, supDistance, supDistance, supNorm, times, toArray, toString, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public int a1
public int a2
public int continIndex1
public int continIndex2
public double weight1
continIndex1
.
This vertex equals
(1-delta) g(a1,a2)
+ delta * (weight1
* continIndex1
+ (1-weight1
) * continIndex2
).
public GameExtremePoint.CONSTRAINT stageConstraint
public GameExtremePoint.CONSTRAINT continConstraint
Constructor Detail |
---|
public GameExtremePoint(double x, double y)
x
- x-coordinatey
- y-coordinatepublic GameExtremePoint(double x, double y, int a1, int a2, int continIndex1, int continIndex2, double weight1, GameExtremePoint.CONSTRAINT stageConstraint, GameExtremePoint.CONSTRAINT continConstraint)
GameExtremePoint
detailing
a vertex of V* and how it is generated.
x
- x-coordinatey
- y-coordinatea1
- action of player 1a2
- action of player 2continIndex1
- index of continuation valuecontinIndex2
- index of continuation valueweight1
- the weight on continIndex1
stageConstraint
- binding IC constraints at stage payoffcontinConstraint
- binding IC constraints for continuation valueMethod Detail |
---|
public GameExtremePoint getContraction(double g1, double g2, double discount)
g1
- stage payoff to 1g2
- stage payoff to 2discount
- the discount rate
public void contract(double g1, double g2, double discount)
g1
- stage payoff to 1g2
- stage payoff to 2discount
- the discount ratepublic Point getPoint()
GameExtremePoint
and returns
an instance of Point
with the same coordinates.
Point
(x
,y
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |