COMMIT : strcpy(wt->type,type) added at line 1330
This commit is contained in:
parent
b511fe864d
commit
5c9a4b5a88
@ -1327,6 +1327,7 @@ int getCWTScaleLength(int N) {
|
|||||||
|
|
||||||
void setCWTScales(cwt_object wt, double s0, double dj,char *type,int power) {
|
void setCWTScales(cwt_object wt, double s0, double dj,char *type,int power) {
|
||||||
int i;
|
int i;
|
||||||
|
strcpy(wt->type,type);
|
||||||
//s0*pow(2.0, (double)(j - 1)*dj);
|
//s0*pow(2.0, (double)(j - 1)*dj);
|
||||||
if (!strcmp(wt->type, "pow") || !strcmp(wt->type, "power")) {
|
if (!strcmp(wt->type, "pow") || !strcmp(wt->type, "power")) {
|
||||||
for (i = 0; i < wt->J; ++i) {
|
for (i = 0; i < wt->J; ++i) {
|
||||||
@ -1340,7 +1341,6 @@ void setCWTScales(cwt_object wt, double s0, double dj,char *type,int power) {
|
|||||||
wt->scale[i] = s0 + (double)i * dj;
|
wt->scale[i] = s0 + (double)i * dj;
|
||||||
}
|
}
|
||||||
wt->sflag = 1;
|
wt->sflag = 1;
|
||||||
strcpy(wt->type,type);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
printf("\n Type accepts only two values : pow and lin\n");
|
printf("\n Type accepts only two values : pow and lin\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user