Experiment with filters - 1

This commit is contained in:
Mikhail Zelenyy 2019-01-31 14:44:55 +03:00
parent ba230d0de1
commit a8fd6fdb92

View File

@ -0,0 +1,25 @@
package scientifik.kmath.signal
import scientifik.kmath.structures.NDStructure
interface Filter<T :Any>{
fun process(input : T) : T
}
interface Convolve<T : Any>{
fun convolve(input1 : T, input2: T) : T
}
object Convolve1D<Vec>
fun NDStructure<out Number>.convolve(){
}
abstract class SignalProcessing<T : Any>(
val filter: Filter<T>,
val convolver : Convolve<T>
){
fun process()
}