spectrochempy.trapz¶
- trapz(*args, **kwargs)[source]¶
An alias of
trapezoid
kept for backwards compatibility.Integrate using the composite trapezoidal rule.
Wrapper of scpy.integrate.trapezoid.
Performs the integration along the last or given dimension.
- dataset
NDDataset
Dataset to be integrated.
- **kwargs
Additional keywords parameters. See Other Parameters.
- integral
Definite integral as approximated by trapezoidal rule.
- dimint or str, optional, default: “x”
Dimension along which to integrate. If an integer is provided, it is equivalent to the
axis
parameter for numpy arrays.
trapz : An alias of trapezoid.
simps : Integrate using the composite simpson rule.
>>> dataset = scp.read('irdata/nh4y-activation.spg') >>> dataset[:,1250.:1800.].trapz() NDDataset: [float64] a.u..cm^-1 (size: 55)
- dataset