Skip to content

Decreasing function of the Euclidean distance Min or Max ? #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pocman opened this issue Dec 22, 2014 · 0 comments
Open

Decreasing function of the Euclidean distance Min or Max ? #238

pocman opened this issue Dec 22, 2014 · 0 comments

Comments

@pocman
Copy link
Contributor

pocman commented Dec 22, 2014

Hi,

I'm going through Tim Salimans' model.
The decreasing function is coded as :

def f_distance(gxy_pos, halo_pos, c):
    # foo_position should be a 2-d numpy array
    return np.maximum(euclidean_distance(gxy_pos, halo_pos), c)[:, None]

Same for tim's code :

x(:,j) = x(:,j)./repmat(max(dist(:,j),minr_big),2,1);

But the latex seems to be off :

f(ri,j)=1/min(ri,j,240)

@pocman pocman changed the title Decreasing function of the Euclidean distance Min/Max Decreasing function of the Euclidean distance Min or Max ? Dec 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant