theil_within_group
Compute the within group Theil index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
Sequence
|
The input value-vector. Shape (n, ) |
required |
partition
|
Sequence
|
The groups for each x value. Shape (n, ). |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The computed within group Theil index. |