R/W2P.R

Defines functions W2P

W2P <-
function(W){
    ## Computes: Pj(Wj) ~ W/(1+sum(W)).
    ## -W and P are vectors.
    P <- W/(1+sum(W))
    ##print(P)
    return(P)
  }

Try the Clomial package in your browser

Any scripts or data that you put into this service are public.

Clomial documentation built on Nov. 8, 2020, 8:16 p.m.