Rank: 316 based on 260 downloads (last 30 days) and 12 files submitted
photo

Zachary Danziger

E-mail
Company/University
Duke University

Personal Profile:

Postdoctoral researcher in neuroscience.

Web: https://sites.google.com/site/zdanziger/home

Professional Interests:
computational motor control

 

Watch this Author's files

 

Files Posted by Zachary View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Apr 2013 Screenshot Text Yahtzee Play Yahtzee in the command window, with multiple players per game. Author: Zachary Danziger games, game 17 0
  • 5.0
5.0 | 1 rating
03 Apr 2013 Screenshot Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger distance, mathematics, metric, trajectory similarity 138 4
  • 4.25
4.2 | 4 ratings
03 Apr 2013 Screenshot Variable Frequency Sine Wave Create a sine wave by defining the frequency over a series of intervals. Author: Zachary Danziger mathematics 30 0
31 Jul 2012 Screenshot ChessPeace Software for playing Chess and Chess Variants Author: Zachary Danziger game, games, chess, artificial intelligen..., ai, graphics 10 0
22 Nov 2011 Screenshot Swap structure values into strings Finds fields of a structure in a string, and replaces them with the corresponding field values. Author: Zachary Danziger structure, string, field, title 1 0
Comments and Ratings by Zachary View all
Updated File Comments Rating
03 Oct 2012 Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger

Roel H,
Agreed on both counts. The code has been updated and re-posted. Doing some quick testing, the updates you recommended significantly improve speed for very large matrices, thank you.

13 Jun 2012 Chess clock Digital chess clock with variable time limit and optional extra time per move Author: Mathias Benedek

I have thought of an additional wish, we can call it 2.5-

I noticed that with this clock white must sit on the same side of the board each time, meaning, to switch colors you must switch seats rather than just rotating the board between games (as you might do when using a normal chess clock). It would be more convenient if I could choose which side is white on your clock - or perhaps more simply - remove the predetermined colors on your clock and allow me to choose which side starts counting down first.

13 Jun 2012 Chess clock Digital chess clock with variable time limit and optional extra time per move Author: Mathias Benedek

I used this function and it worked as advertised. Additionally, it made me happy.
The following suggestions are not shortcomings of the code, only my wish-list for the code, and I will list them in the order of how much I wish for them (I have not opened the code, so I don’t know how hard it would be to modify it).

1- More sophisticated time controls. I.e., 1st 20 moves in 15min, then an additional time increment is added, or the “hourglass” time control (one of my favorites).
2- A GUI button to pause the clock.
3- A noise, flashing or color change when one side has run out of time, rather than a pop-up.
4- A way to close the GUI during play without generating an error and without needing to press escape (a GUI button to call up the menu rather than hitting escape).

Notes: The code supports negative time increments, and while I have never seen or heard of this in actual chess play, it is absolutely hilarious to see. You cannot, however, set your increment or starting time to “pi”. This will not cause an error, but it will give you “nan” minutes to work with. Imaginary values will generate errors. Setting initial times to negative numbers will result in the expected out of time message.

30 Apr 2012 Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger

It was brought to my attention by Roey Baror of Tel-Aviv University that creating/outputting a matrix of distances between all points could quickly tax the system's memory for large matrices, such as high resolution images. The update provides a secondary algorithm to calculate the Hausdorff Distance without storing the large matrix in memory, and detects automatically when this secondary algorithm is necessary.

25 Apr 2012 DoodleJump DoodleJump allows user to play DoodleJump game on MATLAB GUI. Author: Stepen Sahrun

Cool.

Comments and Ratings on Zachary's Files View all
Updated File Comment by Comments Rating
02 May 2013 Discrete Frechet Distance The discrete Frechet distance is a scalar measure of similarity between two curves. Author: Zachary Danziger Chen, Lingji

Very good, thanks!

Since you use an inner function to implement c(i, j), maybe the parameters P, Q and dfcn can be omitted?

06 Apr 2013 Text Yahtzee Play Yahtzee in the command window, with multiple players per game. Author: Zachary Danziger Nicolò

03 Oct 2012 Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger Danziger, Zachary

Roel H,
Agreed on both counts. The code has been updated and re-posted. Doing some quick testing, the updates you recommended significantly improve speed for very large matrices, thank you.

25 Sep 2012 Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger H, Roel

Nice code, thanks for writing this function!

Though I have a few remarks. For the largeMat case, it is better to use bsxfun instead of repmat, as it is more efficient(faster) for large matrices which obviously is the case. Also it may be an idea to postpone the "sqrt" call untill a maximum is found. This won't change the outcome, but should require less computations

%existing code:
minP = min(sqrt(sum((repmat(P(p,:),[sQ(1) 1]) - Q).^2,2)));
%sugestion:
minP = min(sum((bsxfun(@minus,P(p,:),Q)).^2,2));

07 Jun 2012 Discrete Frechet Distance The discrete Frechet distance is a scalar measure of similarity between two curves. Author: Zachary Danziger Pan, Jiacai

thank you for my sharing your file

Top Tags Applied by Zachary
mathematics, games, matrix, linear algebra, entertainment
Files Tagged by Zachary View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Apr 2013 Screenshot Text Yahtzee Play Yahtzee in the command window, with multiple players per game. Author: Zachary Danziger games, game 17 0
  • 5.0
5.0 | 1 rating
03 Apr 2013 Screenshot Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger distance, mathematics, metric, trajectory similarity 138 4
  • 4.25
4.2 | 4 ratings
03 Apr 2013 Screenshot Variable Frequency Sine Wave Create a sine wave by defining the frequency over a series of intervals. Author: Zachary Danziger mathematics 30 0
31 Jul 2012 Screenshot ChessPeace Software for playing Chess and Chess Variants Author: Zachary Danziger game, games, chess, artificial intelligen..., ai, graphics 10 0
22 Nov 2011 Screenshot Swap structure values into strings Finds fields of a structure in a string, and replaces them with the corresponding field values. Author: Zachary Danziger structure, string, field, title 1 0

Contact us