Skip to content

9.3 zadani#4

Open
Alevember wants to merge 3 commits intomainfrom
vizualizace
Open

9.3 zadani#4
Alevember wants to merge 3 commits intomainfrom
vizualizace

Conversation

@Alevember
Copy link
Copy Markdown
Collaborator

No description provided.

return fig

def multiscale_analysis(x, y, q_a_vals, q_b_vals):
grid_sizes = [2, 4, 8]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modularize - create a class representing a "mean"

dx = 1.0 / gs
dy = 1.0 / gs

p_map_arith = np.full((gs, gs), np.nan)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants