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

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

diff8nbnR Documentation

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

Description

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

Usage

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

 diff8nbn(rbmn0nbn.01, rbmn0nbn.01);
 diff8nbn(rbmn0nbn.01, rbmn0nbn.01, scalar=FALSE);

rbmn documentation built on April 7, 2022, 9:05 a.m.