Package-level declarations

Types

Link copied to clipboard

Streaming and buffer transformations with Commons-math algorithms

Functions

Link copied to clipboard
@JvmName(name = "realFFT")
fun Flow<Buffer<Double>>.fft(normalization: DftNormalization = DftNormalization.STANDARD, direction: TransformType = TransformType.FORWARD): Flow<Buffer<Complex>>

fun Flow<Buffer<Complex>>.fft(normalization: DftNormalization = DftNormalization.STANDARD, direction: TransformType = TransformType.FORWARD): Flow<Buffer<Complex>>

Process given Flow with commons-math fft transformation

@JvmName(name = "realFFT")
fun Flow<Double>.fft(bufferSize: Int = Int.MAX_VALUE, normalization: DftNormalization = DftNormalization.STANDARD, direction: TransformType = TransformType.FORWARD): Flow<Complex>

Process a continuous flow of real numbers in FFT splitting it in chunks of bufferSize.

Link copied to clipboard

Map a complex flow into real flow by taking real part of each number