Distribution
dstz.math.stat.distribution
max_deng_entropy_distribution(n)
Calculates the maximum Deng entropy distribution.
This function provides a specific implementation of a maximum entropy distribution, known as Deng entropy. It is configured to generate events as the powerset of a simple space, which is a common scenario in evidence theory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
The size of the simple space (number of singleton elements). |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
The maximum Deng entropy distribution for the given size. |
Source code in dstz/math/stat/distribution.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
max_entropy_distribution(n, simple_generator, event_generator, component_generator=set, condition_func=None)
Computes a maximum entropy distribution over a generated event space.
This is a generalized function that creates a belief distribution based on the principle of maximum entropy. It assigns belief masses to events in a way that is as non-committal as possible, given the structure of the event space. The belief mass for each event is proportional to the size of its corresponding event space.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
A size parameter passed to the |
required |
simple_generator
|
function
|
A function that takes |
required |
event_generator
|
function
|
A function that takes the simple space and returns a set of all possible events. |
required |
component_generator
|
function
|
A function to create subsets
of events. Defaults to |
set
|
condition_func
|
function
|
A conditional function to apply
to event generations. Defaults to |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
An |
Source code in dstz/math/stat/distribution.py
7 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 41 42 43 44 45 46 47 48 | |
max_rps_entropy_distribution(n)
Computes the max entropy distribution for Random Permutation Sets (RPS).
This function calculates a maximum entropy distribution where the events are all possible permutations of the elements in a simple space. This is useful for scenarios where the order of elements is significant.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
The size of the simple space. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Evidence |
The maximum entropy distribution over all permutations. |
Source code in dstz/math/stat/distribution.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |