-
Notifications
You must be signed in to change notification settings - Fork 0
/
G_FeatureExtraction_Frequency_FeatureNames_Backup_v1.m
84 lines (64 loc) · 2.27 KB
/
G_FeatureExtraction_Frequency_FeatureNames_Backup_v1.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
function [featureNames,...
numberOfFeatures,...
orderedSpectrumFeatureNumber] = G_FeatureExtraction_Frequency_FeatureNames(harmonicNumber,numberOfMFCCCoef)
%name of all the Frequency domain features extracted
featureNames={'Frequency_Mean',... %TODO: explain about each features
'Frequency_Median',...
'Frequency_SNR',...
'Frequency_PowerBW',...
'Frequency_BandPower',...
'Frequency_SpectralCentroid',...
'Frequency_SpectralEntropy',...
'Frequency_SpectralFlux',...
'Frequency_SpectralRollOff',...
'Frequency_THD',...
'Frequency_OccupiedBW'};
fname1=cell(1,harmonicNumber);
fname2=cell(1,harmonicNumber-1);
fname3=cell(1,harmonicNumber);
fname4=cell(1,harmonicNumber);
for name_j=1:harmonicNumber
fname1{name_j}= strcat('Frequency_OrderedSpecPeakAmpHarmonic',num2str(name_j));
fname3{name_j}= strcat('Frequency_OrderedSpecPeakWidthHarmonic',num2str(name_j));
fname4{name_j}= strcat('Frequency_OrderedSpecPeakProminanceHarmonic',num2str(name_j));
if(name_j==harmonicNumber)
continue;
end
fname2{name_j}= strcat('Frequency_OrderedSpecPeakLocsDiffHarmonic',num2str(name_j));
end
orderedSpectrumFeatureNames=[fname1, fname2, fname3, fname4];
orderedSpectrumFeatureNumber = length(orderedSpectrumFeatureNames);
%add ordered harmonics features
% featureNames=[featureNames , orderedSpectrumFeatureNames];
fname=cell(1,numberOfMFCCCoef);
for name_i=1:numberOfMFCCCoef
fname{name_i}= strcat('Frequency_MFCC_Coeff',num2str(name_i));
end
%add ACF features
featureNames=[featureNames ,fname];
% dutyCycleFeatureNames={'Frequency_DutyCycle_Max',...
% 'Frequency_DutyCycle_Min',...
% 'Frequency_DutyCycle_Mode',...
% 'Frequency_DutyCycle_Mean',...
% 'Frequency_DutyCycle_Std',...
% 'Frequency_DutyCycle_MaxsubMin'
% };
%
%
% dutyCycleFeatureNumber = length(dutyCycleFeatureNames);
%
%
%
%
% %add DutyCycle features
% featureNames=[featureNames ,dutyCycleFeatureNames];
% fname=cell(1,numLags);
% for name_i=1:numLags
% fname{name_i}= strcat('Frequency_ACF_Lag',num2str(name_i));
% end
% %add ACF features
% featureNames=[featureNames ,fname];
%
%
numberOfFeatures = length(featureNames); % total time features
end