R/MSE_f.R

Defines functions MSE_f

MSE_f<-function(func, op_v, dat){
  try(if(class(func)!='function'){stop('argument to MSE_f(f) has to be a function')}
      else{
        m<-(sum((func(op_v)-dat[1,])^2))
        return(m)
      })
}
Chitran1987/DataAnalyze1.0 documentation built on July 23, 2019, 12:50 a.m.