How can I find the complexity of this function?
private double EuclideanDistance(MFCC.MFCCFrame vec1, MFCC.MFCCFrame vec2) { double Distance = 0.0; for (
You can consider it O(1):
In other words, Math.Sqrt() translates to a single floating point machine code instruction
source: c# Math.Sqrt Implementation