pDPTreeRealize function

The disitribution function for realized distribution from D-P tree.

The disitribution function for realized distribution from D-P tree.

pDPTreeRealize returns the value of distribution function of realized distribution from D-P tree at certain given point on copula space.

pDPTreeRealize(d, x)

Arguments

  • d: A 2m2^m by 2m2^m matrix, m being the approximating level. Normalized measures for all 2m2^m by 2m2^m sub-partititons on copula space given by the realized distribution from D-P tree, as returned by DPTreeDensity.
  • x: An array of dimension n by 2. The points on copula space for distribution function evluation. Should be between 0 and 1.

Returns

An array of length n. The values of CDF of the input D-P tree distribution evaluated at the input points.

Examples

pDPTreeRealize(DPTreePMeanDensity(DPTreePrior(m=2, z=1)),c(0.5,0.5))

References

Rdpack::insert_ref(key="DPtree",package="DPtree")

  • Maintainer: Shaoyang Ning
  • License: MIT + file LICENSE
  • Last published: 2018-06-19

Useful links