Skip to content

2 d complete#1

Open
jbrezmorf wants to merge 3 commits intomainfrom
2D_complete
Open

2 d complete#1
jbrezmorf wants to merge 3 commits intomainfrom
2D_complete

Conversation

@jbrezmorf
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor Author

@jbrezmorf jbrezmorf left a comment

Choose a reason for hiding this comment

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

Old ... nekomentuju
Pro strukturu repozitáře se můžete inspirovat např. zde:
MLMC

# EMPIRICKÝ VARIOGRAM gamma(h) = 0.5 * E[(f(x)-f(x+h))^2]
# =============================================================================

def empirical_variogram(x, field, n_bins=30, n_sample=300):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Přesuňte do samostatného souboru diagnostic.py.
V tomto modulu by zůstalo pouze generování.

# BOD 3: GRF 1D
# =============================================================================

x_reg = np.linspace(0, L, N)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Zkuste refaktorovat do podoby numerického a grafického testu.
pole generované pomocí NFFT by se porovnalo s polem generovaným FFT
testovala by se L2 norma np.linalg.norm(nfft_grf - interpolate(fft_grf, ..)) +
grafy.

Soubory přejmenujte na test_... a přesuňte do podadresáře 'tests'.
Následně se testy spustí pomocí nástroje 'pytest'

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