ci and cj depends on frequency as well as number of row and columns of specified matrix
if ( i == 0 ) ci = 1 / sqrt ( m ) ; else ci = sqrt ( 2 ) / sqrt ( m ) ; if ( j == 0 ) cj = 1 / sqrt ( n ) ; else cj = sqrt ( 2 ) / sqrt ( n ) ;