Page cover

MATLAB API

This is the class and function reference of catch22. Please refer to the user guide for further details as the class and function specifications may not be sufficient to give full context.

catch22_all

Automatically run every time series feature calculation included in the catch22/24 set.


Syntax

[featureValues, featureNamesLong, featureNamesShort] = catch22_all(data, doCatch24)

Description

[featureValues, featureNamesLong, featureNamesShort] = catch22_all(data, doCatch24) returns a 24x1 array of feature outputs, a 24x1 array of long feature names and 24x1 array of short feature names for the input time series, data.


Examples

chevron-rightCompute catch22 featureshashtag

Compute catch22 features on a Gaussian i.i.d. random number sequence.

tsData = rand(100, 1) % data as a column vector

% compute catch22 features
[featureValues, featureNamesLong, featureNameShort] = catch22_all(data, false)

% compute cactch24 features
[featureValues, featureNamesLong, featureNameShort] = catch22_all(data)

Input Arguments

chevron-rightdata - time series as column vectorhashtag

Input univariate time series, specified as a column vector.

Data Types: double

chevron-rightdoCatch24 - Include Mean and Std. Deviationhashtag

Whether to include mean and standard deviation (a total of 24 features). Default is true.

Data Types: logical


Output Arguments

chevron-rightfeatureValues hashtag

Computed feature values for the input data.

Data Type: cell array

chevron-rightfeatureNamesLonghashtag

Long feature names corresponding to the feature values.

Data Type: cell array

chevron-rightfeatureNamesShorthashtag

Short feature names corresponding to the feature values.

Data Type: cell array


GetAllFeatureNames

Get all feature names for the catch22/24 feature set.


Syntax


Description

[featureNamesLong, featureNamesShort] = GetAllFeatureNames(doCatch24) retrieves all feature names for the catch22 (or catch24) feature set.


Examples

chevron-rightRetrieve catch22/24 feature nameshashtag

Input Arguments

chevron-rightdoCatch24hashtag

Whether to include mean and standard deviation as features. Default is true.

Data Types: logical


Output Arguments

chevron-rightfeatureNamesLonghashtag

Long feature names corresponding to the feature values.

Data Type: cell array

chevron-rightfeatureNamesShorthashtag

Short feature names corresponding to the feature values.

Data Type: cell array



catch22_DN_HistogramMode_5

Measures the mode of the data vector using histogram with 5 bins.

circle-info

Note: This is a typical example of how an individual feature method is called. All features are called in this way and accept the same data types as inputs while returning the same data types as outputs. You can call each feature individually using its corresponding long name as per the table of features, e.g., catch22_CO_f1ecac.

Syntax

Description

featureVal = catch22_DN_HistogramMode_5(data) computes the mode of the data vector using a histogram with 5 bins.

Examples

chevron-rightCompute DN_HistogramMode_5 for time serieshashtag

Input Arguments

chevron-rightdata - time series row vector hashtag

Input univariate time series, specified as a row vector.

Data Types: double

Output Arguments

chevron-rightfeatureVal - feature outputhashtag

Output corresponding to the feature method.

Data Type: double

Note: All catch22/24 feature methods expect the same input arguments (and data types) and return the same output arguments (and data types).


Last updated