Function calculateDistance

Function Documentation

float calculateDistance(const std::vector<float> &signal, unsigned short int start_index, unsigned short int end_index)

compute the mean of the values between the start and end indices

Parameters:
  • signal – vector of values

  • start_index – starting index

  • end_index – end index

Returns:

the mean of the values between the start and end indices