mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
Merge branch 'main' into soc_zero_price_precision
This commit is contained in:
commit
ebc41bca14
@ -164,6 +164,7 @@ class HourlyElectricityPriceForecast:
|
|||||||
axis=0,
|
axis=0,
|
||||||
weights=np.array([1, 2, 4, 8, 16, 32, 64]) / np.sum(np.array([1, 2, 4, 8, 16, 32, 64])),
|
weights=np.array([1, 2, 4, 8, 16, 32, 64]) / np.sum(np.array([1, 2, 4, 8, 16, 32, 64])),
|
||||||
)
|
)
|
||||||
|
|
||||||
final_weights = np.linspace(1, 0, price_matrix.shape[1])
|
final_weights = np.linspace(1, 0, price_matrix.shape[1])
|
||||||
|
|
||||||
# Weight last known price linear falling
|
# Weight last known price linear falling
|
||||||
@ -175,6 +176,7 @@ class HourlyElectricityPriceForecast:
|
|||||||
|
|
||||||
return np.array(average_prices_with_final_weight)
|
return np.array(average_prices_with_final_weight)
|
||||||
|
|
||||||
|
|
||||||
def get_price_for_daterange(
|
def get_price_for_daterange(
|
||||||
self, start_date_str: str, end_date_str: str, repeat: bool = False
|
self, start_date_str: str, end_date_str: str, repeat: bool = False
|
||||||
) -> np.ndarray:
|
) -> np.ndarray:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user