vallenae.features.counts

vallenae.features.counts(data, threshold)[source]

Compute the number of positive threshold crossings of a hit (counts).

Parameters
  • data (ndarray) – Input array

  • threshold (float) – Threshold amplitude

Return type

int

Returns

Number of positive threshold crossings