Package jdistlib

Class CVineCopula

java.lang.Object
jdistlib.CVineCopula
All Implemented Interfaces:
Copula, VineCopula

public final class CVineCopula extends Object implements VineCopula
Simplified C-vine copula assembled from bivariate conditional copulas.
  • Constructor Details

    • CVineCopula

      public CVineCopula(PairCopula[]... pairs)
      Creates a C-vine. Row root contains pair copulas (root, root+1), ..., (root, d-1) conditioned on all earlier roots, so row lengths must be d-1, d-2, ..., 1.
  • Method Details

    • dimension

      public int dimension()
      Description copied from interface: Copula
      Number of coordinates.
      Specified by:
      dimension in interface Copula
    • getPairCopula

      public PairCopula getPairCopula(int root, int other)
    • logDensity

      public double logDensity(double[] u)
      Description copied from interface: Copula
      Natural logarithm of the copula density at an interior point.
      Specified by:
      logDensity in interface Copula
    • cumulative

      public double cumulative(double[] u)
      Description copied from interface: Copula
      Copula distribution function at u.
      Specified by:
      cumulative in interface Copula
    • cumulativeResult

      public VineProbabilityResult cumulativeResult(double[] u, int samples, RandomEngine random)
      Estimates the lower-orthant CDF with caller-owned randomization.
      Specified by:
      cumulativeResult in interface VineCopula
    • random

      public double[] random(RandomEngine random)
      Description copied from interface: Copula
      Generates one vector of dependent uniform variates.
      Specified by:
      random in interface Copula
    • kendallsTau

      public double kendallsTau(int first, int second)
      Description copied from interface: Copula
      Kendall's tau for a coordinate pair.
      Specified by:
      kendallsTau in interface Copula