Skip to content

v1.1.0

Choose a tag to compare

@benfulcher benfulcher released this 20 Oct 00:47
9e738f6

catch22 v1.1.0

Adds two functions to the C API for computing a single feature. Feature values are unchanged from v1.0.0.

  • catch22_compute_feature(y, n, i, mask_nans, &out, &masked) computes only feature i (0 to 23, in the order of catch22_feature_name()), with the same input checks, z-scoring and masking as catch22_compute(), so it gives exactly the same value. An out-of-range index returns the new CATCH22_BAD_INDEX.
  • catch22_feature_index(name) returns the index of the feature with a given long or short name (e.g., "CO_trev_1_num" or "trev"), or -1. To compute a feature by name: catch22_compute_feature(y, n, catch22_feature_index("trev"), 1, &out, NULL). Names from v0.x are not matched, since the v1.0 definitions differ.

These let language wrappers offer per-feature functions that compute only that feature (in v1.0, they had to compute all 22 and keep one). Tests check that catch22_compute_feature() matches catch22_compute() exactly for all 24 features, with and without masking, including masked, NaN and single-sample cases (#68).

Full changelog: v1.0.1...v1.1.0