Dual
dstz.math.matrix.dual
conjunctive_rule(ev1, ev2, curItem=Element)
Performs conjunctive combination using the matrix method.
This function uses the Commonality Function Relation Matrix (QFRM) to perform the conjunctive rule of combination.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The first evidence object. |
required |
ev2
|
Evidence
|
The second evidence object. |
required |
curItem
|
callable
|
Factory function for new elements.
Defaults to |
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
The combined evidence. |
Source code in dstz/math/matrix/dual.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
de_conjunctive_rule(ev1, ev2, curItem=Element)
Performs the inverse conjunctive combination using the matrix method.
This can be used to "un-combine" evidence, effectively performing a division in the commonality space.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The evidence to be divided. |
required |
ev2
|
Evidence
|
The evidence to divide by. |
required |
curItem
|
callable
|
Factory function for new elements.
Defaults to |
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
The resulting evidence. |
Source code in dstz/math/matrix/dual.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
de_disjunctive_rule(ev1, ev2, curItem=Element)
Performs the inverse disjunctive combination using the matrix method.
This can be used to "un-combine" evidence, effectively performing a division in the belief space.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The evidence to be divided. |
required |
ev2
|
Evidence
|
The evidence to divide by. |
required |
curItem
|
callable
|
Factory function for new elements.
Defaults to |
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
The resulting evidence. |
Source code in dstz/math/matrix/dual.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
disjunctive_rule(ev1, ev2, curItem=Element)
Performs disjunctive combination using the matrix method.
This function uses the Belief Function Relation Matrix (BFRM) to perform the disjunctive rule of combination.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The first evidence object. |
required |
ev2
|
Evidence
|
The second evidence object. |
required |
curItem
|
callable
|
Factory function for new elements.
Defaults to |
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
The combined evidence. |
Source code in dstz/math/matrix/dual.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
matrix_rule(ev1, ev2, matrix, fod, mul=True, curItem=Element)
Combines two evidence objects using a generic matrix-based rule.
This function provides a framework for evidence combination using linear algebra. It transforms evidence mass functions into another domain (e.g., belief or commonality space) using a transformation matrix, combines them in that domain, and then transforms the result back into a mass function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The first evidence object. |
required |
ev2
|
Evidence
|
The second evidence object. |
required |
matrix
|
ndarray
|
The transformation matrix (e.g., BFRM or QFRM). |
required |
fod
|
list
|
An ordered list of the singleton elements forming the Frame of Discernment. |
required |
mul
|
bool
|
If |
True
|
curItem
|
callable
|
A factory function to create new item
instances. Defaults to |
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
A new |
Source code in dstz/math/matrix/dual.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |