Package dev.nm.stat.evt.markovchain
Class ExtremeValueMC
java.lang.Object
dev.nm.stat.evt.markovchain.ExtremeValueMC
- All Implemented Interfaces:
RandomNumberGenerator
,Seedable
Simulation of first order extreme value Markov chains such that each pair of consecutive values
has the dependence structure of given bivariate extreme value distributions.
The R equivalent function is
evd::evmc
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Types of marginal distribution of each simulated value. -
Constructor Summary
ConstructorsConstructorDescriptionExtremeValueMC
(BivariateEVD bevd, ExtremeValueMC.MarginalDistributionType marginalType) Create an instance with a given bivariate distribution that defines the dependence structure between two consecutive simulated values, and usesUniformRNG
for random number generation.ExtremeValueMC
(BivariateEVD bivariate, ExtremeValueMC.MarginalDistributionType marginalType, RandomNumberGenerator uniformRng) Create an instance with a given bivariate distribution that defines the dependence structure between two consecutive simulated values, and a uniform random number generator. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the next randomdouble
.void
seed
(long... seeds) Seed the random number/vector/scenario generator to produce repeatable experiments.
-
Constructor Details
-
ExtremeValueMC
Create an instance with a given bivariate distribution that defines the dependence structure between two consecutive simulated values, and usesUniformRNG
for random number generation.- Parameters:
bevd
- the dependence between two consecutive valuesmarginalType
- the type of the marginal distribution
-
ExtremeValueMC
public ExtremeValueMC(BivariateEVD bivariate, ExtremeValueMC.MarginalDistributionType marginalType, RandomNumberGenerator uniformRng) Create an instance with a given bivariate distribution that defines the dependence structure between two consecutive simulated values, and a uniform random number generator.- Parameters:
bivariate
- the dependence between two consecutive valuesmarginalType
- the type of the marginal distributionuniformRng
- the uniform random number generator
-
-
Method Details
-
nextDouble
public double nextDouble()Description copied from interface:RandomNumberGenerator
Get the next randomdouble
.- Specified by:
nextDouble
in interfaceRandomNumberGenerator
- Returns:
- the next random number
-
seed
public void seed(long... seeds) Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments.
-