Set of timedata.
More...
def __init__ |
( |
|
self, |
|
|
|
folderPath = None |
|
) |
| |
def _buildImbalancePricesForecast |
( |
|
self | ) |
|
|
private |
Replace the read upward and downward imbalance prices by forecasts based on the previous data.
def adjustMeanMax |
( |
|
datalist, |
|
|
|
newMean = 0 , |
|
|
|
newMax = 1 |
|
) |
| |
Adjust a list of floats to meet a given mean and max value.
- Parameters
-
datalist | List of floats. |
newMean | New mean of the resulting list. |
newMax | New max of the resulting list. |
- Returns
- Adjusted maplist of floats.
def getMeanMax |
( |
|
datalist, |
|
|
|
excludedProportion = 0.025 |
|
) |
| |
Get the mean and the maximum value excluding the extreme one.
- Parameters
-
datalist | List of data |
excludedProportion | Proportion of data to be excluded. |
- Returns
- Tuple (mean,max) values.
def periodValue |
( |
|
data, |
|
|
|
t, |
|
|
|
T |
|
) |
| |
Get the value for a period t in {0,...T-1} from a data vector.
If the length of data is greater than T, take the mean values of the data covered by the period t. It the length of data is less or equal than T, take the corresponding value.
- Parameters
-
data | Data as a vector of numbers. |
t | Period index |
T | Number of periods in the output time horizon. |
def readColumn |
( |
|
self, |
|
|
|
filePath, |
|
|
|
column = 0 |
|
) |
| |
Read a column of a csv file.
- Parameters
-
filePath | Path to the csv file. |
column | Column index. |
- Returns
- List with the column entries converted to float.
def readFromFolder |
( |
|
self, |
|
|
|
folderPath |
|
) |
| |
Read timedata from a folder.
- Parameters
-
folderPath | Folder with the timedata files. The folder should contains the following files:
- energyPrices.csv
- load.csv
- windPower.csv
|
Upward imbalance prices for each quarter.
Energy prices for each quarter.
Load consumption for each quarter.
System imbalance for each quarter.
Upward imbalance prices for each quarter.
Wind powers for each quarter.
The documentation for this class was generated from the following file: