fcondXA2: Conditional density evaluation in the fully nonparametric...

Description Usage Details Examples

View source: R/fcondXA2.R

Description

This function evaluates a density path conditionally on a posterior realization of the normalized measure.

Usage

1
fcondXA2(x, distr, Tauy, Tauz, J)

Details

For internal use.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## The function is currently defined as
function (x, distr = 1, Tauy, Tauz, J) 
{
    pJ <- J/sum(J)
    K <- matrix(NA, nrow = length(Tauy), ncol = length(x))
    for (i in seq(Tauy)) {
        K[i, ] <- dk(x, distr = distr, mu = Tauy[i], sigma = Tauz[i])
    }
    fcondXA2 <- apply(K, 2, function(x) sum(x * pJ))
    return(fcondXA2)
  }

BNPdensity documentation built on May 29, 2017, 9:33 p.m.

Search within the BNPdensity package
Search all R packages, documentation and source code