| maxFunc | R Documentation |
Compute Maximum and Minimum Functions
maxFunc(..., na.rm = FALSE, bound = NULL, Funcs = c(...))
minFunc(..., na.rm = FALSE, bound = NULL, Funcs = c(...))
... |
arbitrary list of vectorized functions or vectorized functions, behaving returning numerical values of the same size as a result to the same arguments |
na.rm |
boolean, should na results be discared? |
bound |
a limiting function. All values exceeding (or smaller than for minFunc) are ignored in the maximum. |
Funcs |
the list of all functions that should be used in the maximum or minimum |
a function taking like the given functions, and returning the maximum (or minium) of the values not exceeding the boundary.
minFunc(): computes the minimum
F = maxFunc(\(x) dnorm(x),\(x) dnorm(x,mean=2),bound=\(x) rep(0.3,length(x)))
x=seq(-2,5,by=0.01)
plot(x,F(x))
F = minFunc(\(x) dnorm(x),\(x) dnorm(x,mean=2),bound=\(x) rep(0.1,length(x)))
plot(x,F(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.