Displaying 1 result from an estimated 1 matches for "yneg".
Did you mean:
neg
2010 Aug 25
3
approxfun-problems (yleft and yright ignored)
..., as this code-example illustrates:
> ### define the x-values used to construct the approxfun, basically these
are 2000 expression values ranging from ~ 3 to 7:
> xNeg <- NegExprs[, 1]
> xNeg <- sort(xNeg, decreasing = TRUE)
>
> ### generate 2000 y-values between 0 and 1:
> yNeg <- seq(0, 1, 1/(length(xNeg) - 1))
> ### define yleft and yright as well as the rule to clarify what should
happen if input x-values lie outside range(x):
> interp <- approxfun(xNeg, yNeg, yleft = 1, yright = 0, rule=2)
Warning message:
In approxfun(xNeg, yNeg, yleft = 1, yright = 0, ru...