1 |
n |
|
s |
|
t |
|
m |
|
xoy |
|
u |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ##---- 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, s, t, m, xoy, u)
{
if (max(xoy - u, m - xoy) >= 0) {
0
}
else {
if (even(n)) {
j <- 1:(n/2)
1 - (sum(eapsi(j, s, t, m, xoy, u) - eachi(j, s,
t, m, xoy, u)))/(xoy - m)
}
else {
if (n > 1) {
j <- 1:((n - 1)/2)
1 - (sum(eapsi(j, s, t, m, xoy, u) - eachi(j,
s, t, m, xoy, u)))/(xoy - m) - eapsi(max(j) +
1, s, t, m, xoy, u)/(xoy - m)
}
else {
1 - eapsi(1, s, t, m, xoy, u)/(xoy - m)
}
}
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.