edu.cuny.cat.market.matching
Class SplineThetaShoutEngineWithNumberedParam
java.lang.Object
edu.cuny.cat.market.AuctioneerPolicy
edu.cuny.cat.market.matching.ShoutEngine
edu.cuny.cat.market.matching.LazyMaxVolumeShoutEngine
edu.cuny.cat.market.matching.ThetaShoutEngine
edu.cuny.cat.market.matching.SplineThetaShoutEngine
edu.cuny.cat.market.matching.SplineThetaShoutEngineWithNumberedParam
- All Implemented Interfaces:
- AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
public class SplineThetaShoutEngineWithNumberedParam
- extends SplineThetaShoutEngine
An parameterized version of SplineThetaShoutEngine
where thetas are
enumerated as numeric values separately in the parameter database.
Parameters
base .n
3 <= int |
the number of knot points for interpolating |
base .i
-1<=double<=1 |
the ith knot point for interpolating |
- Version:
- $Revision: 1.4 $
- Author:
- Jinzhong Niu
Method Summary |
void |
initialize()
initializes after parameters are set via either setters, constructors, or
parameter files. |
void |
setParamThetas(double[] paramThetas)
|
void |
setup(edu.cuny.config.param.ParameterDatabase parameters,
edu.cuny.config.param.Parameter base)
|
java.lang.String |
toString()
|
Methods inherited from class edu.cuny.cat.market.matching.LazyMaxVolumeShoutEngine |
ascendingAskIterator, askIterator, bidIterator, descendingBidIterator, distributeShouts, distributeShoutsFromHead, distributeShoutsFromTail, getHighestMatchedAsk, getHighestUnmatchedBid, getLowestMatchedBid, getLowestUnmatchedAsk, getMatchedAsks, getMatchedBids, getMatchedVolume, getNumOfMatchedAsks, getNumOfMatchedBids, getNumOfUnmatchedAsks, getNumOfUnmatchedBids, getUnmatchedAsks, getUnmatchedBids, getUnmatchedDemand, getUnmatchedSupply, matchedAskIterator, matchedBidIterator, newShout, prettyPrint, printState, randomizeMatches, removeShout, reset, updateMatchedShouts |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
P_NUM
public static final java.lang.String P_NUM
- See Also:
- Constant Field Values
paramThetas
protected double[] paramThetas
SplineThetaShoutEngineWithNumberedParam
public SplineThetaShoutEngineWithNumberedParam()
setup
public void setup(edu.cuny.config.param.ParameterDatabase parameters,
edu.cuny.config.param.Parameter base)
- Specified by:
setup
in interface edu.cuny.config.param.Parameterizable
- Overrides:
setup
in class ThetaShoutEngine
initialize
public void initialize()
- Description copied from class:
AuctioneerPolicy
- initializes after parameters are set via either setters, constructors, or
parameter files.
- Overrides:
initialize
in class AuctioneerPolicy
setParamThetas
public void setParamThetas(double[] paramThetas)
toString
public java.lang.String toString()
- Overrides:
toString
in class SplineThetaShoutEngine