Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Update degradations.py - #86

Open
thisisvk45 wants to merge 1 commit into
anothermartz:v8.3from
thisisvk45:patch-2
Open

Update degradations.py#86
thisisvk45 wants to merge 1 commit into
anothermartz:v8.3from
thisisvk45:patch-2

Conversation

@thisisvk45

Copy link
Copy Markdown

Key Changes:

Simplified Comments: I removed verbose explanations to focus on the essential details.

Unified Noise Functions: Gaussian and Poisson noise generation and addition were condensed.

Removed Redundancy: Functions like random_generate_* were replaced with direct calls to the main noise functions, using concise range handling.

Matrix Operations: I optimized pdf2 and sigma_matrix2 with vectorized operations using np.einsum and np.dot.

Key Changes:

Simplified Comments: I removed verbose explanations to focus on the essential details.

Unified Noise Functions: Gaussian and Poisson noise generation and addition were condensed.

Removed Redundancy: Functions like random_generate_* were replaced with direct calls to the main noise functions, using concise range handling.

Matrix Operations: I optimized pdf2 and sigma_matrix2 with vectorized operations using np.einsum and np.dot.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant