Dual
dstz.evpiece.dual
conjunctive_rule(ev1, ev2, curItem=Element)
Combines two evidence objects using the conjunctive rule.
This rule merges two evidence distributions by calculating the union of their focal elements. The mass of a new focal element is the product of the masses of the original focal elements that form it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The first evidence distribution. |
required |
ev2
|
Evidence
|
The second evidence distribution. |
required |
curItem
|
callable
|
A factory function to create new item
instances from the resulting unions. Defaults to |
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
A new evidence distribution representing the combined result. |
Source code in dstz/evpiece/dual.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
disjunctive_rule(ev1, ev2, curItem=Element)
Combines two evidence objects using the disjunctive rule.
This rule merges two evidence distributions by calculating the intersection of their focal elements. The mass of a new focal element is the product of the masses of the original focal elements that form it. Unlike the Dempster-Shafer rule, this rule does not normalize for conflict.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The first evidence distribution. |
required |
ev2
|
Evidence
|
The second evidence distribution. |
required |
curItem
|
callable
|
A factory function to create new item
instances from the resulting intersections. Defaults to |
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
A new evidence distribution representing the combined result. |
Source code in dstz/evpiece/dual.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
ds_rule(ev1, ev2, curItem=Element)
Combines two evidence objects using the Dempster-Shafer rule.
This function applies the classic Dempster-Shafer (DS) rule of
combination to merge two mass functions (ev1 and ev2). The rule
combines belief from two independent sources by intersecting their
focal elements and multiplying their masses.
A key feature of the DS rule is its handling of conflict. Any mass assigned to the empty set as a result of the combination is used to normalize the masses of the remaining non-empty sets.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The first evidence object. |
required |
ev2
|
Evidence
|
The second evidence object. |
required |
curItem
|
callable
|
A factory function to create new item
instances from the resulting intersections. Defaults to |
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
A new |
Source code in dstz/evpiece/dual.py
8 9 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 | |
rps_left_rule(ev1, ev2, curItem=Element)
Combines two evidences using the Left-Rule for Relative Proof Strength.
This function applies a specific combination rule where the intersection
of focal elements is computed while preserving the order and duplicates
from the first evidence object (ev1).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The first evidence object (the "left" side). |
required |
ev2
|
Evidence
|
The second evidence object. |
required |
curItem
|
callable
|
The factory function to create new
element instances. Defaults to |
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
A new |
Source code in dstz/evpiece/dual.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
wang_orthogonal_rule(ev1, ev2, curItem=Element)
Applies the Wang Orthogonal Rule for Random Permutation Sets.
This advanced combination rule is designed for evidence where the order
of elements (permutations) is meaningful. It uses the
order_code_intersection function to find intersecting permutations
between the focal elements of ev1 and ev2.
The combined belief mass is distributed evenly among all resulting intersecting permutations. This method is based on the research paper:
Wang, Y., Li, Z., & Deng, Y. (2024). A new orthogonal sum in Random Permutation Set. Fuzzy Sets and Systems, 109034.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ev1
|
Evidence
|
The first evidence set, containing ordered elements. |
required |
ev2
|
Evidence
|
The second evidence set, structured similarly to |
required |
curItem
|
callable
|
A factory function that creates an
|
Element
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
A new |
Source code in dstz/evpiece/dual.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | |