jdtuck / fdasrsf_python

elastic fda python code
http://research.tetonedge.net
BSD 3-Clause "New" or "Revised" License
52 stars 18 forks source link

References for the Elastic distance #18

Closed kiranvad closed 2 years ago

kiranvad commented 2 years ago

Hi, Thanks a lot for open sourcing this codebase. I find it very useful. I was trying to understand the elastic distance in https://github.com/jdtuck/fdasrsf_python/blob/f59bd74b570662c17a1a042556d4887e6a75fa3e/fdasrsf/umap_metric.py#L292 and was wondering if you've any paper/book that I can refer to. From the implementation, it appears to me that it's different than the simple SRSF with the L2 metric distance one would compute (is it the amplitude distance?). Any help would be greatly appreciated.

TIA Kiran Vaddi

jdtuck commented 2 years ago

It’s not any different other than it’s set up to be used directly with the Python package umap-learn. It is the Fischer Rao distance but assumes input is two SRSFs. Just as all computation it uses Dynamic Programming to find the optimal alignment. If you aren’t using UMAP I would use elastic_distance