Skip to content

Commit

Permalink
Improve comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaselsteiner committed Jul 27, 2020
1 parent 80d067c commit 590b4f6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions viroconcom/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def cdf(self, x, rv_values=None, dependencies=None):
Parameters
----------
x : array_like
Points at which to calculate the cdf.
Points at which the cdf is evaluated.
rv_values : array_like
Values of all random variables in variable space in correct order.
This can be a 1-dimensional array with length equal to the number of
Expand Down Expand Up @@ -188,7 +188,7 @@ def i_cdf(self, probabilities, rv_values=None, dependencies=None):
Parameters
----------
probabilities : array_like
Probabilities for which to calculate the i_cdf.
Probabilities for which the i_cdf is evaluated.
rv_values : array_like
Values of all random variables in variable space in correct order.
This can be a 1-dimensional array with length equal to the number of
Expand Down Expand Up @@ -789,7 +789,7 @@ def cdf(self, x, lower_integration_limit=(-np.inf, -np.inf)):
Parameters
----------
x : 2-dimensional ndarray
Points at which to calculate the cdf.
Points at which the cdf is evaluated.
Array is of shape (d, n) with d being the number of variables and
n being the number of points.
lower_integration_limit : array_like, optional
Expand Down Expand Up @@ -830,7 +830,7 @@ def pdf(self, x):
Parameters
----------
x : 2-dimensional ndarray
Points at which to calculate the pdf.
Points at which the pdf is evaluated.
Array is of shape (d, n) with d being the number of variables and
n being the number of points.
Expand Down Expand Up @@ -1038,10 +1038,10 @@ def cell_averaged_pdf(self, dist_index, coords):
for i in range(len(coords)):
if i < len(multi_index):
current_point[i] = coords[i][multi_index[i]]
else: # random variable must be independent of this dimensions, so set to 0
else: # Random variable must be independent of this dimensions, so set to 0.
current_point[i] = 0

# calculate averaged pdf
# Calculate averaged pdf.
lower = cdf(coords[dist_index] - 0.5 * dx, current_point, dependency)
upper = cdf(coords[dist_index] + 0.5 * dx, current_point, dependency)
fbar[f_index] = (upper - lower) # / dx
Expand Down Expand Up @@ -1281,7 +1281,7 @@ def cdf(self, x, rv_values, dependencies):
Parameters
----------
x : array_like
Points at which to calculate the cdf.
Points at which the cdf is evaluated.
rv_values : array_like
Values of all random variables in variable space in correct order.
This can be a 1-dimensional array with length equal to the number of
Expand Down Expand Up @@ -1317,7 +1317,7 @@ def i_cdf(self, probability, rv_values, dependencies):
Parameters
----------
probabilities : array_like
Probabilities for which to calculate the i_cdf.
Probabilities for which the i_cdf is evaluated.
rv_values : array_like
Values of all random variables in variable space in correct order.
This can be a 1-dimensional array with length equal to the number of
Expand Down

0 comments on commit 590b4f6

Please sign in to comment.