tsam.representations¶
tsam.representations
¶
maxoidRepresentation
¶
Represents the candidates of a given cluster group (clusterOrder) by its medoid, measured with the euclidean distance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
candidates
|
ndarray
|
Dissimilarity matrix where each row represents a candidate. required |
required |
clusterOrder
|
array
|
Integer array where the index refers to the candidate and the Integer entry to the group. required |
required |
Source code in src/tsam/representations.py
medoidRepresentation
¶
Represents the candidates of a given cluster group (clusterOrder) by its medoid, measured with the euclidean distance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
candidates
|
ndarray
|
Dissimilarity matrix where each row represents a candidate. required |
required |
clusterOrder
|
array
|
Integer array where the index refers to the candidate and the Integer entry to the group. required |
required |
Source code in src/tsam/representations.py
meanRepresentation
¶
Represents the candidates of a given cluster group (clusterOrder) by its mean.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
candidates
|
ndarray
|
Dissimilarity matrix where each row represents a candidate. required |
required |
clusterOrder
|
array
|
Integer array where the index refers to the candidate and the Integer entry to the group. required |
required |
Source code in src/tsam/representations.py
minmaxmeanRepresentation
¶
Represents the candidates of a given cluster group (clusterOrder) by either the minimum, the maximum or the mean values of each time step for all periods in that cluster depending on the command for each attribute.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
candidates
|
ndarray
|
Dissimilarity matrix where each row represents a candidate. required |
required |
clusterOrder
|
array
|
Integer array where the index refers to the candidate and the Integer entry to the group. required |
required |
representationDict
|
dictionary
|
A dictionary which defines for each attribute whether the typical period should be represented by the minimum or maximum values within each cluster. optional (default: None) |
required |
timeStepsPerPeriod
|
integer
|
The number of discrete timesteps which describe one period. required |
required |