endf.Tabulated1D#
- class endf.Tabulated1D(x, y, breakpoints=None, interpolation=None)[source]#
A one-dimensional tabulated function.
This class mirrors the TAB1 type from the ENDF-6 format. A tabulated function is specified by tabulated (x,y) pairs along with interpolation rules that determine the values between tabulated pairs.
Once an object has been created, it can be used as though it were an actual function, e.g.:
>>> f = Tabulated1D([0, 10], [4, 5]) >>> [f(xi) for xi in numpy.linspace(0, 10, 5)] [4.0, 4.25, 4.5, 4.75, 5.0]
- Parameters:
- interpolation#
Interpolation scheme identification number, e.g., 3 means y is linear in ln(x).
- Type:
Iterable of int
Methods