Exh2d: 2d Exhausive Validification

View source: R/Exh.R

Exh2dR Documentation

2d Exhausive Validification

Description

3d Exhausive Validification

Arguments

func

If a function is used to define the validification it should return a boolean vector with 3 independent variables in order e.g. x,y,z

See Also

contour.function, ~~~ ImpPlot2d, ~~~

Examples

Exh2d(func = function(x,y) x^2+y^2<=sqrt(3^2+3^2),x=seq(from = -3, to = 3,by=.6),y=seq(from = -3, to = 3,by=.6))
## The function is currently defined as
function(func, x = seq(from = -5,to = 5, by=.1),
                    y = seq(from = -5,to = 5, by=.1)){
  message('start exhausive calculation')
  v=NULL
  for(i in x){
    for(j in y){
      if(func(i,j)==T){
        v<-rbind(v,c(i,j))
      }
    }
  }

  message('calculation finished')
  v
}

HaoLi111/MFVN documentation built on Jan. 5, 2023, 4:37 a.m.