Skip to content

Commit

Permalink
Todos, image
Browse files Browse the repository at this point in the history
  • Loading branch information
siarez committed Oct 30, 2017
1 parent 9ab18d4 commit 4000438
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Binary file added Figure_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions pos_recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
def compute_pos(dist, dim=2):
"""
This function computes the positions of points in space from their distance matrix.
https://math.stackexchange.com/questions/156161/finding-the-coordinates-of-points-from-distance-matrix
:param dist: is a square distance matrix
:param dim: dimention of the coord system
:return: returns points coordinates
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
![Alt text](Figure_1.png?raw=true "")
## What?
This project is a playground for trying out ideas about sorting signals.
## Why?
Expand Down
10 changes: 10 additions & 0 deletions unscramler.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,20 @@ def calc_dist(data):
def compute_pos(dist, dim=2):
"""
This function computes the positions of points in space from their distance matrix.
https://math.stackexchange.com/questions/156161/finding-the-coordinates-of-points-from-distance-matrix
http://www.galileoco.com/literature/OCRyoungHouseholder38.pdf
:param dist: is a square distance matrix
:param dim: dimention of the coord system
:return: returns points coordinates
"""
# ToDo: read on eigenvalue constraints and threasholding
# http: // www.galileoco.com / literature / OCRyoungHouseholder38.pdf
# https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4303596/
# https://dl.acm.org/citation.cfm?id=2398462
# https://www.stat.berkeley.edu/~bickel/BL2008Aos-thresholding.pdf
# use tSNE to project higher dimensions down to 2. http://scikit-learn.org/stable/modules/generated/sklearn.manifold.TSNE.html


d1j2 = np.expand_dims(np.square(dist[0, :]), 0)
di12 = np.expand_dims(np.square(dist[:, 0]), 1)
dij2 = np.square(dist)
Expand Down

0 comments on commit 4000438

Please sign in to comment.