Files
beta_shape_pnpi/beta_spectrum/spectrum.py
T
unzhakov a5e1962fe2 Initial commit
Base modular structure (phase space, Fermi function)
Initial .gitignore
2026-04-02 15:38:37 +03:00

18 lines
391 B
Python

# spectrum.py
import numpy as np
from typing import List
from .base import SpectrumComponent
class BetaSpectrum:
def __init__(self, components: List[SpectrumComponent]):
self.components = components
def __call__(self, W: np.ndarray) -> np.ndarray:
result = np.ones_like(W)
for comp in self.components:
result *= comp(W)
return result