tests/Mobius.game-class.R

library(kappalab)

a <- Mobius.game(c(0,runif(15)),4,4)
mu <- zeta(a)
 
f <- c(0.2,0.3,0.1,0.7)
stopifnot(abs(Choquet.integral(a,f) - Choquet.integral(mu,f)) < 1e-6)
stopifnot(abs(Sugeno.integral(a,f) - Sugeno.integral(mu,f)) < 1e-6)
f <- c(0.2,-0.3,0.1,-0.7)
stopifnot(abs(Sipos.integral(a,f) - Sipos.integral(mu,f)) < 1e-6)

Try the kappalab package in your browser

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

kappalab documentation built on Nov. 8, 2023, 1:07 a.m.