Open
Conversation
jbrezmorf
reviewed
Mar 24, 2026
| return fig | ||
|
|
||
| def multiscale_analysis(x, y, q_a_vals, q_b_vals): | ||
| grid_sizes = [2, 4, 8] |
Contributor
There was a problem hiding this comment.
Používat typing: a: str, a: Dict[Union[str, int], float], a:Dict[Any,Any]
Pro xarray, ndarray:
Přidat k hlavním funkcím doc string s popisem vstupních parametrů.
"""
x - field A, has shape (N,N)
| qa_w = q_a_vals[mask, :] | ||
| qb_w = q_b_vals[mask, :] | ||
|
|
||
| qa_arith = np.mean(qa_w, axis=0) |
Contributor
There was a problem hiding this comment.
Modularize - create a class representing a "mean"
| dx = 1.0 / gs | ||
| dy = 1.0 / gs | ||
|
|
||
| p_map_arith = np.full((gs, gs), np.nan) |
Contributor
There was a problem hiding this comment.
Compute mean of whole array and use it as default value.
| return fig | ||
|
|
||
| def perform_ttest(grid_A, grid_B): | ||
| t_stat, p_value = ttest_ind(grid_A, grid_B, axis=-1, equal_var=False, alternative='two-sided') |
Contributor
There was a problem hiding this comment.
Je shape (gs, gs, N) ?
Nutno upravit aby se t_test pro jednu buňku počítal z původních hodnot bodů v buňce. V každé buňce je počet bodů jiný.
? test_ind s ignorováním NaN nebo pro maskovaná pole. np.masked_array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.