TorchBicop.simulate
- TorchBicop.simulate(n=100, *, x=None, qrng=False, seeds=None)
Draws
njoint samples from the fitted copula.Uses the inverse Rosenblatt scheme: sample two independent uniforms
(U1, P)and setU2 = hinv1((U1, P))so that(U1, U2)has the fitted joint distribution.- Parameters:
- nint, default=100
Number of samples to draw (must be
> 0).- xTensor or None, optional
Conditioning variables. Ignored by
TorchBicop(an unconditional pair copula); accepted for signature parity with theBicopLikecontract.- qrngbool, default=False
If
True, draw the base uniforms from a scrambled Sobol sequence instead of pseudo-random uniforms.- seedslist of int or None, optional
When
qrng=Truethe first entry seeds thetorch.quasirandom.SobolEnginescramble; whenqrng=Falseit seeds the global torch RNG before thetorch.randcall.Nonekeeps the existing global state.
- Returns:
- Tensor, shape (n, 2), dtype float
Samples in
(0, 1)^2.