From a8fd6fdb92047c0cddf5a6453f2862e316c78523 Mon Sep 17 00:00:00 2001 From: Mikhail Zelenyy Date: Thu, 31 Jan 2019 14:44:55 +0300 Subject: [PATCH] Experiment with filters - 1 --- .../kotlin/scientifik/kmath/signal/Filter.kt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 kmath-core/src/commonMain/kotlin/scientifik/kmath/signal/Filter.kt diff --git a/kmath-core/src/commonMain/kotlin/scientifik/kmath/signal/Filter.kt b/kmath-core/src/commonMain/kotlin/scientifik/kmath/signal/Filter.kt new file mode 100644 index 000000000..327307985 --- /dev/null +++ b/kmath-core/src/commonMain/kotlin/scientifik/kmath/signal/Filter.kt @@ -0,0 +1,25 @@ +package scientifik.kmath.signal + +import scientifik.kmath.structures.NDStructure + + +interface Filter{ + fun process(input : T) : T +} + +interface Convolve{ + fun convolve(input1 : T, input2: T) : T +} + +object Convolve1D + +fun NDStructure.convolve(){ + +} + +abstract class SignalProcessing( + val filter: Filter, + val convolver : Convolve +){ + fun process() +}