This function computes the probability of each point in a given vector or matrix.
Examples
C <- c(1, 1, 2, 2, 3)
.Prob(C)
#> C
#> 1 2 3
#> 0.4 0.4 0.2
This function computes the probability of each point in a given vector or matrix.
C <- c(1, 1, 2, 2, 3)
.Prob(C)
#> C
#> 1 2 3
#> 0.4 0.4 0.2