Skip to content

Commit e2f7bb9

Browse files
committed
Rename function
1 parent fc08c42 commit e2f7bb9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

windpowerlib/power_curves.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def smooth_power_curve(power_curve_wind_speeds, power_curve_values,
3838
Default: 'turbulence_intensity'.
3939
mean_gauss : float or integer
4040
Mean of the Gaus distribution in
41-
:py:func:`~.tools.gaussian_distribution`:. Default: 0.
41+
:py:func:`~.tools.gauss_distribution`:. Default: 0.
4242
4343
Other Parameters
4444
----------------
@@ -122,7 +122,7 @@ def smooth_power_curve(power_curve_wind_speeds, power_curve_values,
122122
smoothed_value = sum(
123123
block_width * np.interp(wind_speed, power_curve_wind_speeds,
124124
power_curve_values, left=0, right=0) *
125-
tools.gaussian_distribution(
125+
tools.gauss_distribution(
126126
power_curve_wind_speed - wind_speed,
127127
standard_deviation, mean_gauss)
128128
for wind_speed in wind_speeds_block)

windpowerlib/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def logarithmic_interpolation_extrapolation(df, target_height):
127127
(np.log(heights_sorted[1]) - np.log(heights_sorted[0])))
128128

129129

130-
def gaussian_distribution(function_variable, standard_deviation, mean=0):
130+
def gauss_distribution(function_variable, standard_deviation, mean=0):
131131
r"""
132132
Gauss distribution.
133133

0 commit comments

Comments
 (0)