Displaying 1 result from an estimated 1 matches for "pmitr".
Did you mean:
vmitr
2011 Jul 02
2
Vector of functions
Hi there,
I have a vector of some functions e.g.
#-----------------------------#
f.1 <- function(a) {
return( a );
}
f.2 <- function(a) {
return( 1 - (tanh(a))^2 );
}
f.3 <- function(a) {
return( 1 / (1+exp(-a)) * (1 - (1 / (1+exp(-a)))) );
}
func.l <- c(f.1, f.2, f.3);
#-----------------------------#
and would like to calculate the output value of a function in the
vector,