MCPcopy Create free account
hub / github.com/PyWavelets/pywt / swt_max_level

Function swt_max_level

pywt/_extensions/c/common.c:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87unsigned char swt_max_level(size_t input_len){
88 /* check how many times input_len is divisible by 2 */
89 unsigned char j = 0;
90 while (input_len > 0){
91 if (input_len % 2)
92 return j;
93 input_len /= 2;
94 j++;
95 }
96 return j;
97}

Callers 4

mra2Function · 0.85
mranFunction · 0.85
swtFunction · 0.85
CAT(TYPE, _swt_)Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected