assess.CGdata {ECG} | R Documentation |
Evaluates the CGdata object estimation against a reference value by the En index.
## S3 method for class 'CGdata'
assess(x, y, x.B=list(u=0, dof=Inf), alpha=x$input$alpha)
x |
a CGdata object |
y |
a list with the reference value (x, u) |
x.B |
a list with the estimate of uncertainty type B for the x object and its degrees of freedom |
alpha |
a numeric, the level of significance to compute the coverage factor and expanded uncertainty |
the numeric value of the En index evaluation. This is a normalized error value with expanded uncertainty equals 1.0.
H. Gasca-Aragon
require(ECG)
N<- 1000
set.seed(12345)
d1<- 1-sin(seq(1:(5/2*N))/N*pi-pi*3/4)+rnorm(5/2*N, 0, 0.01)
dat<- data.frame(x=1:length(d1),
y=100*(d1-min(d1))/(max(d1)-min(d1)))
CGres<- CGdata(dat)
X.ref <- list(x=1250, u=0, dof=Inf)
assess(CGres, y=X.ref)