Main Content

getScalarizationMethods

Get current scalarization methods of feature extractor object

Since R2024a

    Description

    example

    getScalarizationMethods(sFE,featurename) returns the scalarization methods stored in the ScalarizationMethod property of the time-frequency feature extractor object sFE to extract scalar values from featurename.

    Examples

    collapse all

    Create a signalTimeFrequencyFeatureExtractor object and enable the spectral crest, time-frequency ridges, and instantaneous bandwidth time-frequency-domain features. Specify scalarization methods in the spectral crest and the instantaneous bandwidth features.

    sFE = signalTimeFrequencyFeatureExtractor( ...
        SpectralCrest=true,TFRidges=true,InstantaneousBandwidth=true);
    setScalarizationMethods(sFE,"SpectralCrest", ...
        PeakValue=true,StandardDeviation=true)
    setScalarizationMethods(sFE,"InstantaneousBandwidth", ...
        ImpulseFactor=true)

    Get the current scalarization methods for each enabled feature.

    getScalarizationMethods(sFE,"SpectralCrest")
    ans = 2x1 string
        "PeakValue"
        "StandardDeviation"
    
    
    getScalarizationMethods(sFE,"TFRidges")
    ans = 
    
      0x0 empty string array
    
    getScalarizationMethods(sFE,"InstantaneousBandwidth")
    ans = 
    "ImpulseFactor"
    

    To obtain scalar features using the feature extractor object sFE, use the extract function.

    Input Arguments

    collapse all

    Feature extractor object, specified as a signalTimeFrequencyFeatureExtractor object.

    Extracted feature, specified as a string scalar or a character vector.

    Data Types: char | string

    Tips

    • Use the setScalarizationMethods function to specify scalarization methods for the features that you enabled when creating the feature extractor object.

    Version History

    Introduced in R2024a