function [ curvature ] = UkHomotopyFollower( k, n, coords, lambda, w )
%UNTITLED2 Summary of this function goes here
%   Detailed explanation goes here
    lc = 10;

    xk = coords(k, 1);
    yk = coords(k, 2);
    x1 = coords(1, 1);
    y1 = coords(1, 2);
    x2 = coords(2, 1);
    y2 = coords(2, 2);
    rlength1 = sqrt((x1-xk)^2 + (y1-yk)^2);
    rlength2 = sqrt((x2-xk)^2 + (y2-yk)^2);
    if rlength1 < rlength2
        leader = 1;
        rlengthl = rlength1;
    else
        leader = 2;
        rlengthl = rlength2;
    end

    curvature = C(rlengthl, 1-lambda, w)*((lc-1)*lambda + 1)*Ujk(leader, k, coords);
    for i = 1:n
       if (i == k || i==leader)
       else
           xi = coords(i, 1);
           yi = coords(i, 2);
           rlengthi = sqrt((xi-xk)^2 + (yi-yk)^2);
           curvature = curvature + C(rlengthi, 1 - lambda, w)*Ujk(i, k, coords);
       end
    end

end