-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from TeaspoonTDA/lizliz/issue88
Adding starting code for magnitude function
- Loading branch information
Showing
153 changed files
with
4,194 additions
and
17,065 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Magnitude | ||
========= | ||
|
||
This module is related to calculation of the magnitude. Some relevant links and references are below. | ||
|
||
- `Magnitude in ncatlab <https://ncatlab.org/nlab/show/magnitude+of+an+enriched+category>`_. | ||
- Tom Leinster, The magnitude of metric spaces. Doc. Math. 18 (2013), pp. 857-905. doi: `10.4171/DM/415 <https://doi.org/10.4171/DM/415>`_. | ||
- Miguel O'Malley, Sara Kalisnik, Nina Otter. Alpha magnitude. Journal of Pure and Applied Algebra, Volume 227, Issue 11,2023, doi: `10.1016/j.jpaa.2023.107396 <https://doi.org/10.1016/j.jpaa.2023.107396>`_. | ||
|
||
|
||
|
||
Magnitude function | ||
**************************************** | ||
|
||
|
||
.. automodule:: teaspoon.TDA.Magnitude | ||
:members: MagnitudeFunction | ||
:noindex: | ||
|
||
|
||
.. This function calculates the magnitude function, ``t \\mapsto |tX|``, of an input distance matrix assumed to be calculated from a finite metric space ``X``, on the interval defined by `t_range` at `t_n` locations. | ||
.. - Given a finite metric space ``(X,d)`` and for matrix purposes, fix an order on the points ``x_1,\\cdots,x_n``. | ||
.. - Denote the distance matrix by ``D=[d(x_i,x_j)]_{ij}=[D_{ij}]_{ij}`` | ||
.. - Denote the similarity matrix ``Z=Z_X`` to have entries ``Z_{ij}=e^{-D_{ij}}`` | ||
.. - We'll also be interested in the scaled version for some ``t \\in (0,\\infty)``, where ``tZ`` is the matrix for metric space ``tX`` and ``tZ_{ij}=e^{-tD_{ij}}`` | ||
.. - The magnitude of ``|tX|`` is | ||
.. `` |tX| = \\sum_{i,j} ((tZ)^{-1})_{ij} `` | ||
.. where ``(tZ)^{-1}`` is the inverse of the matrix ``tZ``, assuming it exists. | ||
.. - The magnitude function is | ||
.. ``M: t \\mapsto |tX|`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 3df2220f69d188b64da4e174a9daeb51 | ||
config: 01f0340a5ccd1f1bff9883440704a85b | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.