mirror of
https://github.com/simon987/wavelib.git
synced 2025-04-20 18:46:45 +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;
|
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;
|
dnmethod = $scope.selected.dnmethod.dnmethod;
|
||||||
threshold = $scope.selected.threshold.threshold;
|
threshold = $scope.selected.threshold.threshold;
|
||||||
@ -881,6 +874,14 @@ app.controller('denoiseController', function ($scope, $http, $modal, wave) {
|
|||||||
var J = $scope.selected.level;
|
var J = $scope.selected.level;
|
||||||
//console.log(wave.sigData);
|
//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.J = J;
|
||||||
wave.method = method;
|
wave.method = method;
|
||||||
wave.ext = ext;
|
wave.ext = ext;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user