<< atkTr_lowerBound Attack Tree atkTr_or >>

Attack Tree >> Attack Tree > atkTr_merge

atkTr_merge

distribution tlist merge

Calling Sequence

Z=atkTr_merge(X,Y)

Parameters

X :

a sorted distribution tlist

Y :

a sorted distribution tlist

Z :

a sorted distribution tlist

Description

returns Z the sorted distribution tlist merge of X and Y defined by :

The sum of the cumulative sum of X.probability and the cumulative sum of Y.probability must be smaller than 1.

Examples

X=tlist(['distribution','state','probability'],[2,9,15],0.3*[0.25,0.5,0.25])
Y=tlist(['distribution','state','probability'],[5,7,9],0.7*[0.3,0.1,0.6])
Z=atkTr_merge(X,Y)
//  Expected : Z.state       2.    5.   7.    9.   15.
//             Z.probability 0.075 0.21 0.07  0.57  0.075

Report an issue
<< atkTr_lowerBound Attack Tree atkTr_or >>