Skip to content

Commit f2c0f43

Browse files
committed
Changes to docstring
1 parent f8eaacc commit f2c0f43

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

windpowerlib/tools.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,15 @@ def linear_extra_interpolation(data_frame, requested_height, column_name):
9292
used for extrapolation:
9393
9494
.. math:: interpolant = (value_2 - value_1) / (height_2 - height_1) *
95-
(requested_height - height_1) + value_1
95+
(height_{requested} - height_1) + value_1
9696
9797
with:
98-
height_2: largest/smallest value in data frame, height_1: second
99-
largest/smallest value in data frame, value_2: corresponding value to
100-
height_2, value_1: correponding value to height_1
98+
:math:`height_2`: largest/smallest value in data frame,
99+
:math:`height_1`: second largest/smallest value in data frame,
100+
:math:`value_2`: corresponding value to `height_2`,
101+
:math:`value_1`: correponding value to `height_1`,
102+
:math:`height_{requested}` : Height for which the interpolation takes
103+
place
101104
102105
"""
103106
if requested_height > max(data_frame.index):

0 commit comments

Comments
 (0)