|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSALPMPE.Profit99
public class Profit99
Defines the single period profit function for the quality ladder competition model.
Field Summary | |
---|---|
(package private) static double[] |
gm
Array of quality levels |
Constructor Summary | |
---|---|
Profit99()
Defines a new instance of the profit function. |
Method Summary | |
---|---|
double[] |
fsolve(int[] s,
double Xtol)
Newton method implementation to solve for equilibrium prices for quality ladder competition model. |
static void |
gaussian(double[][] a,
int[] index)
Method to perform the partial-pivoting Gaussian elimination. |
double[] |
mshare(int[] s)
Computes industry equilibrium market shares for the single-period price competition game. |
double[] |
profit(int[] s)
Computes industry equilibrium profits for the single-period price competition game. |
static double[] |
solve(double[][] a,
double[] b,
int[] index)
Method to solve the equation a[][] x[] = b[] with the partial-pivoting Gaussian elimination scheme. |
double[] |
surplus(int[] s)
Computes industry equilibrium consumer surplus for the single-period price competition game. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static double[] gm
Constructor Detail |
---|
public Profit99()
Method Detail |
---|
public double[] profit(int[] s)
s
- Industry state.
public double[] mshare(int[] s)
s
- Industry state.
public double[] surplus(int[] s)
s
- Industry state.
public double[] fsolve(int[] s, double Xtol)
s
- Industry state.Xtol
- Price tolerance.
public static double[] solve(double[][] a, double[] b, int[] index)
a
- Left hand side matrix.b
- Right hand side vector.
public static void gaussian(double[][] a, int[] index)
index
- Records the pivoting order.a
- Left hand side matrix.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |