Fro.GBN {bnmonitor}R Documentation

Frobenius norm for GBN

Description

Fro.GBN returns the Frobenius norm between between an object of class GBN and its update after a standard parameter variation.

Usage

## S3 method for class 'GBN'
Fro(x, entry, delta, log = TRUE, ...)

Arguments

x

object of class GBN.

entry

a vector of length 2 indicating the entry of the covariance matrix to vary.

delta

numeric vector, including the variation parameters that act additively.

log

boolean value. If TRUE, the logarithm of the Frobenius norm is returned. Set by default to TRUE.

...

additional arguments for compatibility.

Details

Computation of the Frobenius norm between a Bayesian network and the additively perturbed Bayesian network, where the perturbation is either to the mean vector or to the covariance matrix. The Frobenius norm is not computed for perturbations of the mean since it is always equal to zero.

Value

A dataframe including in the first column the variations performed and in the second column the corresponding Frobenius norm.

See Also

KL.GBN, KL.CI, Fro.CI, Jeffreys.GBN, Jeffreys.CI

Examples

Fro(synthetic_gbn,c(3,3),seq(-1,1,0.1))


[Package bnmonitor version 0.2.0 Index]