ewoksxas.fit.data.XYData#
- class ewoksxas.fit.data.XYData(*, x, y)[source]#
Bases:
objectAn immutable container for 1D X and Y data.
Used to hold the observations to be fitted as well as the fitted peak, baseline and total-model curves returned by a fit.
- Attributes:
x: 1D array of x-values. y: 1D array of y-values.
- Parameters:
x (
ndarray[tuple[int,...],dtype[float64]])y (
ndarray[tuple[int,...],dtype[float64]])
- as_dict()[source]#
Returns the dataclass attributes as a dictionary.
- Return type:
dict[str,ndarray[tuple[int,...],dtype[float64]]]
- x: ndarray[tuple[int, ...], dtype[float64]]#
- y: ndarray[tuple[int, ...], dtype[float64]]#