forked from kscience/kmath
Experiment with filters - 1
This commit is contained in:
parent
ba230d0de1
commit
a8fd6fdb92
@ -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()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user