Home > src > main > matlab > flaglet_check_axisym_tiling.m

flaglet_check_axisym_tiling

PURPOSE ^

flaglet_check_axisym_tiling - Checks exactness of the tiling.

SYNOPSIS ^

function error_on_axisym_tiling = flaglet_check_axisym_tiling(kappa, kappa0, L, N, B_l, B_n)

DESCRIPTION ^

 flaglet_check_axisym_tiling - Checks exactness of the tiling.
 -- Axisymmetric wavelets on the solid sphere.

 B3LET package to perform Wavelets transform on the Solid Sphere.
 Copyright (C) 2012  Boris Leistedt & Jason McEwen
 See LICENSE.txt for license details

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function error_on_axisym_tiling = flaglet_check_axisym_tiling(kappa, kappa0, L, N, B_l, B_n)
0002 
0003 % flaglet_check_axisym_tiling - Checks exactness of the tiling.
0004 % -- Axisymmetric wavelets on the solid sphere.
0005 %
0006 % B3LET package to perform Wavelets transform on the Solid Sphere.
0007 % Copyright (C) 2012  Boris Leistedt & Jason McEwen
0008 % See LICENSE.txt for license details
0009 
0010 J_l = ceil(log(L) ./ log(B_l));
0011 J_n = ceil(log(N) ./ log(B_n));
0012 
0013 identity = kappa0.^2;
0014 for jl = 0:J_l
0015     for jn = 0:J_n
0016         temp = kappa{jl+1,jn+1};
0017         identity(:,:) = identity(:,:) + temp.^2;
0018     end
0019 end
0020 
0021 error_on_axisym_tiling = 0;
0022 for l=1:L
0023     for n=1:N
0024         error_on_axisym_tiling = error_on_axisym_tiling + identity(n,l) - 1.0; 
0025     end
0026 end
0027 
0028 end

Generated on Mon 24-Sep-2012 12:26:33 by m2html © 2005