diff8nbn: returns a score of the difference between two /nbn/s

Description Usage Arguments Details Value Examples

View source: R/f03.nbnmi.code.r

Description

Returns a positive scalar value measuring, in some way, the difference existing within two /nbn/s sharing the same structure.

Usage

1
diff8nbn(nbn1, nbn2, type=1, scalar=TRUE)

Arguments

nbn1

First nbn object.

nbn2

Second nbn object.

type

When 1, the score includes the difference between the sigmas. When -1, sigmas are not taken into account.

scalar

When TRUE the squared norm is returned, if not the vector of difference.

Details

For type==1 it is the canonical euclidian difference between all parameters, including the sigma. The score to use to measure the differences between two successive estimations is not well established (see the code).

Value

Either a scalar or a named vector (according to scalar).

Examples

1
2

rbmn documentation built on Jan. 16, 2021, 5:31 p.m.