Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update degradations.py #86

Open
wants to merge 1 commit into
base: v8.3
Choose a base branch
from
Open

Conversation

thisisvk45
Copy link

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 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.

1 participant