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 19, 2017, 8:20 p.m.
Search within the BNPdensity package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.