Description Usage Arguments Value Author(s) Examples
Generates Lotkas C value from Equations in Pao(1985)
1 | LotkasC(N)
|
N |
Value N Generated by LotkasN |
Value Returned is C.
Kenneth Buker
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (N)
{
P <- 20
increm <- c(1:(P - 1))
sum <- sum(1/increm^N)
part1 <- sum
part2 <- 1/((N - 1) * (P^(N - 1)))
part3 <- 1/(2 * (P^N))
part4 <- N/(24 * (P - 1)^(N + 1))
result <- (part1 + part2 + part3 + part4)
result <- 1/result
return(result)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.