Skip to content

Commit ccdf914

Browse files
authored
Add missing asm and ass
1 parent 36fb8c5 commit ccdf914

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
%[2018]-Pattern recognition of electromyography signals based on novel
2+
%time domain features for amputees’ limb motion classification" (3)
3+
4+
function ASM = jAbsoluteValueOfTheSummationOfExpRoot(X,~)
5+
K = length(X);
6+
Y = 0;
7+
for n = 1:K
8+
if n >= 0.25 * K && n <= 0.75 * K
9+
exp = 0.5;
10+
else
11+
exp = 0.75;
12+
end
13+
Y = Y + (X(n) ^ exp);
14+
end
15+
ASM = abs(Y / K);
16+
end
17+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
%[2018]-Pattern recognition of electromyography signals based on novel
2+
%time domain features for amputees’ limb motion classification" (1)
3+
4+
function ASS = jAbsoluteValueOfTheSummationOfSquareRoot(X,~)
5+
temp = sum(X .^ (1/2));
6+
ASS = abs(temp);
7+
end
8+

jfemg.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
% Feature Extraction Toolbox by Jingwei Too - 11/12/2020
1+
% Feature Extraction Toolbox by Jingwei Too
22

33
function feat = jfemg(type,X,opts)
44
switch type
55
case 'fzc' ; fun = @jNewZeroCrossing;
66
case 'ewl' ; fun = @jEnhancedWaveLength;
77
case 'emav' ; fun = @jEnhancedMeanAbsoluteValue;
8-
case 'ass' ; fun = @jAbsoluteValueOfTheSummation;
9-
case 'asm' ; fun = @jAbsoluteValueOfTheSummationOfSquareRoot;
8+
case 'asm' ; fun = @jAbsoluteValueOfTheSummationOfExpRoot;
9+
case 'ass' ; fun = @jAbsoluteValueOfTheSummationOfSquareRoot;
1010
case 'msr' ; fun = @jMeanValueOfTheSquareRoot;
1111
case 'ltkeo' ; fun = @jLogTeagerKaiserEnergyOperator;
1212
case 'lcov' ; fun = @jLogCoefficientOfVariation;

0 commit comments

Comments
 (0)