bcaNorm: Computer norm between two basic chance assignment objects

View source: R/bcaNorm.R

bcaNormR Documentation

Computer norm between two basic chance assignment objects

Description

Computer norm between two basic chance assignment objects

Usage

bcaNorm(x, y, p = 1)

Arguments

x

A bca to evaluate norm.

y

A bca to evaluate norm.

p

exponent parameter of the norm

Value

a number of norm evaluation

Author(s)

Peiyuan Zhu

Examples

y1 <- bca(tt = matrix(c(0,1,1,1,1,0,1,1,1),nrow = 3, 
byrow = TRUE), m = c(0.2,0.5, 0.3),
cnames = c("a", "b", "c"),
varnames = "x", idvar = 1)
y2 <- bca(tt = matrix(c(1,0,0,1,1,1),nrow = 2, 
byrow = TRUE), m = c(0.6, 0.4),  
cnames = c("a", "b", "c"),  
varnames = "x", idvar = 1)
y1y2<-dsrwon(y1,y2)
bcaNorm(y1y2,y1)

RAPLER/dst-1 documentation built on Oct. 15, 2024, 9:24 p.m.