<< Attack Tree Attack Tree atkTr_and >>

Attack Tree >> Attack Tree > distribution tlist

distribution tlist

The distribution tlist data type.

Purpose

The Attack Tree library works on finite sparse discrete probability distribution. It uses a data type where the states are stored in a real number vector and the probability of each state are stored in an other vector of the same length. The data type contains two equal length vectors of scilab positive real numbers stored in a scilab tlist. The first argument which give the type of the tlist is the string vector ['distribution', 'state', 'probability' ]. The second is the state vector. It represents the set of states. The third is the probability vector. It contains the probability of each state. The sum of the elements of the latter must be equal to 1. The ith element pi of the probability vector is the probability of the ith element si of the state vector. This data type is called distribution tlist.

A tlist distribution where the state vector elements are sorted in ascending order is called a sorted distribution tlist.

In some internal function the tlist distribution data type is used with a state vector which contains duplicate set. It is not set but a multiset. The probability of a state s with a multiplicity greater than 1 is the sum of the probability of s in the probability vector. This data type is called a multiset distribution tlist.

Examples

X=tlist(['distribution','state','probability'],[2,9,15],[0.25,0.5,0.25])

Report an issue
<< Attack Tree Attack Tree atkTr_and >>