mirror of
https://github.com/simon987/wavelib.git
synced 2025-04-20 10:36:46 +00:00
Commit : Minor Correction ngfile.js
This commit is contained in:
parent
9e08b4e93a
commit
55b1ec9159
15
js/ngfile.js
15
js/ngfile.js
@ -863,13 +863,6 @@ app.controller('denoiseController', function ($scope, $http, $modal, wave) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (method == "swt") {
|
||||
var div = parseInt(Math.pow(2, J));
|
||||
if ((N % div) != 0) {
|
||||
alert("In SWT the data length should be divisible by 2^(Number of Decomposition Levels)");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
dnmethod = $scope.selected.dnmethod.dnmethod;
|
||||
threshold = $scope.selected.threshold.threshold;
|
||||
@ -881,6 +874,14 @@ app.controller('denoiseController', function ($scope, $http, $modal, wave) {
|
||||
var J = $scope.selected.level;
|
||||
//console.log(wave.sigData);
|
||||
|
||||
if (method == "swt") {
|
||||
var div = parseInt(Math.pow(2, J));
|
||||
if ((N % div) != 0) {
|
||||
alert("In SWT the data length should be divisible by 2^(Number of Decomposition Levels)");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
wave.J = J;
|
||||
wave.method = method;
|
||||
wave.ext = ext;
|
||||
|
Loading…
x
Reference in New Issue
Block a user