1

2

3

4

5

6

7

8

9

10

11

12

13

package detection;

 

 

component NormalizedLaplacian<N1 n = 2500>{

    ports in diag Q(-oo:oo)^{n,n} degree,

          in Q(-oo:oo)^{n,n} similarity,

          out Q(-oo:oo)^{n,n} nLaplacian;

 

    implementation Math{

        nLaplacian = degree^(-0.5) * similarity * degree^(-0.5);

    }

}