getExtractorParameters
Description
getExtractorParameters(
gets the parameters used to extract sFE
,featurename
)featurename
.
Examples
Get Parameter Values for Feature Extraction
Create a signalFrequencyFeatureExtractor
object and enable the mean frequency, band power, and peak amplitude features.
sFE = signalFrequencyFeatureExtractor(MeanFrequency=true,BandPower=true,PeakAmplitude=true)
sFE = signalFrequencyFeatureExtractor with properties: Properties FrameSize: [] FrameRate: [] SampleRate: [] IncompleteFrameRule: "drop" FeatureFormat: "matrix" Enabled Features MeanFrequency, BandPower, PeakAmplitude Disabled Features MedianFrequency, OccupiedBandwidth, PowerBandwidth, WelchPSD, PeakLocation
Get the current parameters for the peak amplitude. Note that not all features have parameters for feature computation.
params = getExtractorParameters(sFE,'PeakAmplitude')
params = struct with fields:
PeakType: "maxima"
MaxNumExtrema: 1
MinProminence: []
MinSeparation: []
FlatSelection: []
You can also modify feature parameters. Set the maximum number of peaks to 2
and the minimum peak separation to 3
samples.
params.MaxNumExtrema = 2; params.MinSeparation = 3
params = struct with fields:
PeakType: "maxima"
MaxNumExtrema: 2
MinProminence: []
MinSeparation: 3
FlatSelection: []
Input Arguments
sFE
— Feature extractor object
signalFrequencyFeatureExtractor
object
Feature extractor object, specified as a signalFrequencyFeatureExtractor
object.
featurename
— Extracted feature
string scalar | character vector
Extracted feature, specified as a string scalar or a character vector.
Data Types: char
| string
Version History
Introduced in R2021b
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)