mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
comment
This commit is contained in:
parent
4c0afb6a2a
commit
6bcae41213
@ -122,7 +122,7 @@ class ElecPriceAkkudoktor(ElecPriceProvider):
|
|||||||
self.update_datetime = to_datetime(in_timezone=self.config.timezone)
|
self.update_datetime = to_datetime(in_timezone=self.config.timezone)
|
||||||
return akkudoktor_data
|
return akkudoktor_data
|
||||||
|
|
||||||
def cap_outliers(data, sigma=2):
|
def cap_outliers(data, sigma=2): # remove outliers
|
||||||
mean = data.mean()
|
mean = data.mean()
|
||||||
std = data.std()
|
std = data.std()
|
||||||
lower_bound = mean - sigma * std
|
lower_bound = mean - sigma * std
|
||||||
|
Loading…
x
Reference in New Issue
Block a user