Learn R Programming

KrigInv (version 1.1)

real_ind_fundet: Indicator function for the condition: fundet lies in the band ]T-epsilon, T+epsilon[

Description

Binary function I[T-epsilon < fundet(x) < T+epsilon] indicating when the test function "fundet" lies in a prescribed band

Usage

real_ind_fundet(x,T,epsilon)

Arguments

x
1-dimensional input
T
Target value (a real number)
epsilon
Tolerance value (a real number)

Value

  • 0 or 1 depending on the validity of the condition T-epsilon < fundet(x) < T+epsilon

Examples

Run this code
level <- 0.5
epsilon <- 0.1
t <- seq(0,1,by=0.01)
plot(t, real_ind_fundet(t,T=level,epsilon=epsilon), type="l", col="red", lwd=2)

Run the code above in your browser using DataLab