CanvasCommon.DensityClusteringModel.GetEuclideanDistance C# (CSharp) 메소드

GetEuclideanDistance() 개인적인 메소드

Return the squared euclidean distance between (coverage, maf) and (coverage2, maf2) in scaled coverage/MAF space. https://en.wikipedia.org/wiki/Euclidean_distance
private GetEuclideanDistance ( double coverage, double coverage2, double maf, double maf2 ) : double
coverage double
coverage2 double
maf double
maf2 double
리턴 double
        private double GetEuclideanDistance(double coverage, double coverage2, double maf, double maf2)
        {
            double diff = (coverage - coverage2) * _coverageWeightingFactor;
            double distance = diff * diff;
            diff = maf - maf2;
            distance += diff * diff;
            return Math.Sqrt(distance);
        }