Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Bug in the Euclidean on Accord.Math.Distance #123

@hzawary

Description

@hzawary

Dear Dr,

First of all, thanks for create great Accord framework. I was be angry cause my program doesn't work correctly without any algorithmic or exception problems! I found a silly bug in parameter references that exchange it!


public static double Euclidean(double x1, double y1, double x2, double y2)
{
return System.Math.Sqrt(SquareEuclidean(x1, y1, x2, y2));
}

public static double SquareEuclidean(double x1, double x2, double y1, double y2)
{
double dx = x1 - x2;
double dy = y1 - y2;
return dx * dx + dy * dy; ;
}


It is bit issue, but it is a shadowy nightmare issue :)

Best regards,
Hashem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions