public class Fundamentals
Calling setup()
instantiates MGBM.
Just setting the parameters (initials, drifts, volatilities, correlations)
does not modify the behavior of MGBM; so call setup()
to
re-instanciate (setup(true)
inherits the current state of MGBM).
The initials
must be specified (no defaults).
On the drafts
, volatilities
, correlations
,
their default values are 0.0.
Modifier and Type | Field and Description |
---|---|
Rail<MultiGeomBrownian> |
GBM |
Map<Pair<Long,Long>,Double> |
correlations |
Map<Long,Double> |
drifts |
Map<Long,Long> |
g |
Map<Long,Double> |
initials |
Map<Long,Long> |
l |
Random |
random |
Map<Long,Long> |
table |
Map<Long,Double> |
volatilities |
Constructor and Description |
---|
Fundamentals(Random random) |
Modifier and Type | Method and Description |
---|---|
(package private) static Pair<Long,Long> |
Key()
Type definition: type Key = Pair[Long, Long].
|
protected Long |
addIndex(Long id) |
Double |
get(Market market) |
Double |
get(Long id) |
Double |
get(Long id,
Double orElse) |
static void |
main(Rail<String> id$16) |
void |
removeCorrelation(Long id1,
Long id2) |
void |
setCorrelation(Market market1,
Market market2,
Double correlation) |
void |
setCorrelation(Long id1,
Long id2,
Double correlation) |
void |
setDrift(Market market,
Double drift) |
void |
setDrift(Long id,
Double drift) |
void |
setInitial(Market market,
Double initial) |
void |
setInitial(Long id,
Double initial) |
void |
setVolatility(Market market,
Double volatility) |
void |
setVolatility(Long id,
Double volatility) |
void |
setup() |
void |
setup(Boolean inheritance) |
void |
update() |
public Random random
public Map<Long,Long> table
public Map<Long,Double> initials
public Map<Long,Double> drifts
public Map<Long,Double> volatilities
public Map<Pair<Long,Long>,Double> correlations
public Rail<MultiGeomBrownian> GBM
public Map<Long,Long> g
public Map<Long,Long> l
protected Long addIndex(Long id)
public void setInitial(Market market, Double initial)
public void setInitial(Long id, Double initial)
public void setDrift(Market market, Double drift)
public void setDrift(Long id, Double drift)
public void setVolatility(Market market, Double volatility)
public void setVolatility(Long id, Double volatility)
public void setCorrelation(Long id1, Long id2, Double correlation)
public void removeCorrelation(Long id1, Long id2)
public Double get(Market market)
public Double get(Long id)
public Double get(Long id, Double orElse)
public void update()
public void setup()
public void setup(Boolean inheritance)
public static void main(Rail<String> id$16)
static Pair<Long,Long> Key()