R/getOtherErrEstim.R

Defines functions getOtherErrEstim

Documented in getOtherErrEstim

getOtherErrEstim <-
function(observed, predicted) {
    N <- length(predicted)
    diffPO <- predicted - observed
    result <- c(sqrt(sum(diffPO^2)/sum(observed^2)), (1/N) * sum(abs(diffPO)), 
                (1/N) * sum(diffPO))
    names(result) <- c("relRMSE", "MAE", "BE")
    result
}

Try the KarsTS package in your browser

Any scripts or data that you put into this service are public.

KarsTS documentation built on Jan. 16, 2021, 5:07 p.m.