mirror of
				https://github.com/simon987/wavelib.git
				synced 2025-10-25 13:46:53 +00:00 
			
		
		
		
	COMMIT : ICWT (Approximate Rconstruction) modified to only support power of 2.0 scales
This commit is contained in:
		
							parent
							
								
									5c9a4b5a88
								
							
						
					
					
						commit
						35c426bb12
					
				| @ -1418,9 +1418,12 @@ void icwt(cwt_object wt, double *cwtop) { | |||||||
| 	cdel = cdelta(wt->mother, wt->m, psi); | 	cdel = cdelta(wt->mother, wt->m, psi); | ||||||
| 
 | 
 | ||||||
| 	//printf("\n PSI %g CDEL %g param %g mother %d \n", psi, cdel,wt->m,wt->mother);
 | 	//printf("\n PSI %g CDEL %g param %g mother %d \n", psi, cdel,wt->m,wt->mother);
 | ||||||
| 
 | 	if (!strcmp(wt->type, "pow") || !strcmp(wt->type, "power")) { | ||||||
| 		icwavelet(wt->params, N, wt->params+nj2, wt->J, wt->dt, wt->dj, cdel, psi, cwtop); | 		icwavelet(wt->params, N, wt->params+nj2, wt->J, wt->dt, wt->dj, cdel, psi, cwtop); | ||||||
| 	 | 	} else { | ||||||
|  | 		printf("Inverse CWT is only available for power of 2.0 scales \n"); | ||||||
|  | 		exit(-1); | ||||||
|  | 	} | ||||||
| 	for(i = 0; i < N;++i) { | 	for(i = 0; i < N;++i) { | ||||||
| 		cwtop[i] += wt->smean; | 		cwtop[i] += wt->smean; | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user