kotlin-numpy / org.jetbrains.numkt.math / trapz

trapz

fun <T : Number> trapz(y: KtNDArray<T>, x: KtNDArray<out Number>? = null, dx: Double = 1.0): Double (source)

Integrate along the given axis using the composite trapezoidal rule.

fun <T : Number> trapz(y: KtNDArray<T>, x: KtNDArray<out Number>? = null, dx: Double = 1.0, axis: Int = -1): KtNDArray<Double> (source)