Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Bug in single_burst_ratio, first 2 spikes are ignored #362

@anilbey

Description

@anilbey

for (size_t i = 1; i < isivalues.size(); i++) {

Here in this loop

  double average = 0.;
  for (size_t i = 1; i < isivalues.size(); i++) {
    average += isivalues[i];
  }

The loop here is ignoring the first ISI. The function returning the ISIs however is LibV1::ISI_values and that is already ignoring the first ISI.

const auto& intFeatures = getFeatures(IntFeatureData, {"ignore_first_ISI"});

As a result first 2 ISIs are removed from the computation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions