# usnavalresearchlaboratory/trackercomponentlibrary architecture

> Architecture diagram of the GitHub repository usnavalresearchlaboratory/trackercomponentlibrary, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/usnavalresearchlaboratory/trackercomponentlibrary
- Repository: https://github.com/usnavalresearchlaboratory/trackercomponentlibrary

## Overview

The Tracker Component Library is a broad MATLAB-oriented collection of reusable tracking, estimation, mathematical, coordinate, astronomy, and data-decoding routines, with selected C/C++ implementations. The README describes an end-to-end tracking workflow—initiation, data association, maintenance, and termination—but the supplied tree and excerpts do not expose its tracker modules, so those stages cannot be mapped to verified source nodes. The graph instead shows sampled runtime components and documented capabilities; edges are limited to relationships visible in the excerpts or source index.

Main entry points: [`Mathematical_Functions/Combinatorics/Shared_C++_Code/combinatorialFuns.hpp`](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Combinatorics/Shared_C%2B%2B_Code/combinatorialFuns.hpp) (Combinatorics), [`Container_Classes/Shared_C++_Code/kdTreeCPP.cpp`](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Container_Classes/Shared_C%2B%2B_Code/kdTreeCPP.cpp) (KD tree), [`Mathematical_Functions/Shared_C++_Code/spherHarmonicSetEvalCPP.cpp`](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Shared_C%2B%2B_Code/spherHarmonicSetEvalCPP.cpp) (Spherical harmonics), [`Astronomical_Code/starCat2Obs.cpp`](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Astronomical_Code/starCat2Obs.cpp) (Star observations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tracking["Assignment and clustering"]
  node_assign2d["2D assignment<br/>[assign2DFull.c]"]
  node_assign3d["3D assignment<br/>[assign3DBBCPP.cpp]"]
  node_assign_probs["Association probabilities"]
  node_kbest["k-best assignment<br/>[kBest2DAssign.cpp]"]
  node_mixture_reduction["Mixture reduction"]
  node_cluster_sets["Cluster sets<br/>[ClusterSetCPP.hpp]"]
  node_kd_tree["KD tree<br/>[kdTreeCPP.cpp]"]
end

subgraph group_math["Mathematics and optimization"]
  node_combinatorics["Combinatorics"]
  node_matrix_ops["Matrix operations"]
  node_lbfgs_wrapper["LBFGS interface<br/>[quasiNewtonLBFGS.c]"]
  node_lbfgs_engine["LBFGS engine<br/>[lbfgs.c]"]
  node_binary_search["Binary search<br/>[binSearchDoubles.c]"]
  node_c_search["Search routine<br/>[binSearchC.c]"]
end

subgraph group_science["Coordinates and astronomy"]
  node_coord_funcs["Coordinate functions<br/>[CoordFuncs.hpp]"]
  node_spherical_harmonics["Spherical harmonics"]
  node_star_observations["Star observations<br/>[starCat2Obs.cpp]"]
  node_sofa["SOFA library<br/>[sofa.h]"]
end

subgraph group_interfaces["Data and environment"]
  node_ais_decode["AIS decoder"]
  node_ais_types["AIS message types<br/>[ais.h]"]
  node_atmosphere["Atmosphere model"]
  node_nrlmsise["NRLMSISE-00<br/>[nrlmsise-00.h]"]
end

node_matlab_user(("MATLAB user"))

node_assign3d -->|"uses"| node_combinatorics
node_mixture_reduction -->|"uses Eigen"| node_matrix_ops
node_kd_tree -->|"uses"| node_cluster_sets
node_kd_tree -->|"uses utilities"| node_combinatorics
node_lbfgs_wrapper -->|"calls"| node_lbfgs_engine
node_binary_search -->|"calls"| node_c_search
node_spherical_harmonics -->|"uses"| node_coord_funcs
node_spherical_harmonics -->|"uses utilities"| node_combinatorics
node_star_observations -->|"calls SOFA"| node_sofa
node_star_observations -->|"uses"| node_coord_funcs
node_ais_decode -->|"decodes messages"| node_ais_types
node_atmosphere -->|"uses model"| node_nrlmsise

click node_assign2d "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Assignment_Algorithms/2D_Assignment/assign2DFull.c"
click node_assign3d "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Assignment_Algorithms/3D_Assignment/Shared_C%2B%2B_Code/assign3DBBCPP.cpp"
click node_assign_probs "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Assignment_Algorithms/Association_Probabilities_and_Specific_Updates/calc2DAssignmentProbs.cpp"
click node_kbest "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Assignment_Algorithms/k-Best_2D_Assignment/kBest2DAssign.cpp"
click node_mixture_reduction "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Clustering_and_Mixture_Reduction/RunnalsGaussMixRed.cpp"
click node_cluster_sets "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Container_Classes/Shared_C%2B%2B_Code/ClusterSetCPP.hpp"
click node_kd_tree "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Container_Classes/Shared_C%2B%2B_Code/kdTreeCPP.cpp"
click node_combinatorics "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Combinatorics/Shared_C%2B%2B_Code/combinatorialFuns.hpp"
click node_matrix_ops "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Basic_Matrix_Operations/Shared_C%2B%2B_Code/basicMatOpsEigen.hpp"
click node_lbfgs_wrapper "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Continuous_Optimization/quasiNewtonLBFGS.c"
click node_lbfgs_engine "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/3rd_Party_Libraries/liblbfgs/lib/lbfgs.c"
click node_binary_search "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Searching/binSearchDoubles.c"
click node_c_search "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Shared_C_Code/binSearchC.c"
click node_coord_funcs "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Coordinate_Systems/Shared_C%2B%2B_Code/CoordFuncs.hpp"
click node_spherical_harmonics "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Shared_C%2B%2B_Code/spherHarmonicSetEvalCPP.cpp"
click node_star_observations "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Astronomical_Code/starCat2Obs.cpp"
click node_sofa "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/3rd_Party_Libraries/sofa/src/sofa.h"
click node_ais_decode "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Transponders/decodeAISString.cpp"
click node_ais_types "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/3rd_Party_Libraries/libais-0048ceb/src/libais/ais.h"
click node_atmosphere "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Atmosphere_and_Refraction/NRLMSISE00Alt4Pres.c"
click node_nrlmsise "https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/3rd_Party_Libraries/nrlmsise-00-bc9a2fe/nrlmsise-00.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_assign2d,node_assign3d,node_assign_probs,node_kbest,node_mixture_reduction,node_cluster_sets,node_kd_tree,node_matlab_user toneBlue
class node_combinatorics,node_matrix_ops,node_lbfgs_wrapper,node_lbfgs_engine,node_binary_search,node_c_search toneAmber
class node_coord_funcs,node_spherical_harmonics,node_star_observations,node_sofa toneMint
class node_ais_decode,node_ais_types,node_atmosphere,node_nrlmsise toneRose
```

## Components

### Assignment and clustering

- [2D assignment](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Assignment_Algorithms/2D_Assignment/assign2DFull.c): `Assignment_Algorithms/2D_Assignment/assign2DFull.c`
- [3D assignment](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Assignment_Algorithms/3D_Assignment/Shared_C%2B%2B_Code/assign3DBBCPP.cpp): `Assignment_Algorithms/3D_Assignment/Shared_C++_Code/assign3DBBCPP.cpp`
- [Association probabilities](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Assignment_Algorithms/Association_Probabilities_and_Specific_Updates/calc2DAssignmentProbs.cpp): `Assignment_Algorithms/Association_Probabilities_and_Specific_Updates/calc2DAssignmentProbs.cpp`
- [k-best assignment](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Assignment_Algorithms/k-Best_2D_Assignment/kBest2DAssign.cpp): `Assignment_Algorithms/k-Best_2D_Assignment/kBest2DAssign.cpp`
- [Mixture reduction](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Clustering_and_Mixture_Reduction/RunnalsGaussMixRed.cpp): `Clustering_and_Mixture_Reduction/RunnalsGaussMixRed.cpp`
- [Cluster sets](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Container_Classes/Shared_C%2B%2B_Code/ClusterSetCPP.hpp): `Container_Classes/Shared_C++_Code/ClusterSetCPP.hpp`
- [KD tree](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Container_Classes/Shared_C%2B%2B_Code/kdTreeCPP.cpp): `Container_Classes/Shared_C++_Code/kdTreeCPP.cpp`

### Mathematics and optimization

- [Combinatorics](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Combinatorics/Shared_C%2B%2B_Code/combinatorialFuns.hpp): `Mathematical_Functions/Combinatorics/Shared_C++_Code/combinatorialFuns.hpp`
- [Matrix operations](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Basic_Matrix_Operations/Shared_C%2B%2B_Code/basicMatOpsEigen.hpp): `Mathematical_Functions/Basic_Matrix_Operations/Shared_C++_Code/basicMatOpsEigen.hpp`
- [LBFGS interface](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Continuous_Optimization/quasiNewtonLBFGS.c): `Mathematical_Functions/Continuous_Optimization/quasiNewtonLBFGS.c`
- [LBFGS engine](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/3rd_Party_Libraries/liblbfgs/lib/lbfgs.c): `3rd_Party_Libraries/liblbfgs/lib/lbfgs.c`
- [Binary search](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Searching/binSearchDoubles.c): `Mathematical_Functions/Searching/binSearchDoubles.c`
- [Search routine](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Shared_C_Code/binSearchC.c): `Mathematical_Functions/Shared_C_Code/binSearchC.c`

### Coordinates and astronomy

- [Coordinate functions](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Coordinate_Systems/Shared_C%2B%2B_Code/CoordFuncs.hpp): `Coordinate_Systems/Shared_C++_Code/CoordFuncs.hpp`
- [Spherical harmonics](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Mathematical_Functions/Shared_C%2B%2B_Code/spherHarmonicSetEvalCPP.cpp): `Mathematical_Functions/Shared_C++_Code/spherHarmonicSetEvalCPP.cpp`
- [Star observations](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Astronomical_Code/starCat2Obs.cpp): `Astronomical_Code/starCat2Obs.cpp`
- [SOFA library](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/3rd_Party_Libraries/sofa/src/sofa.h): `3rd_Party_Libraries/sofa/src/sofa.h`

### Data and environment

- [AIS decoder](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Transponders/decodeAISString.cpp): `Transponders/decodeAISString.cpp`
- [AIS message types](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/3rd_Party_Libraries/libais-0048ceb/src/libais/ais.h): `3rd_Party_Libraries/libais-0048ceb/src/libais/ais.h`
- [Atmosphere model](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/Atmosphere_and_Refraction/NRLMSISE00Alt4Pres.c): `Atmosphere_and_Refraction/NRLMSISE00Alt4Pres.c`
- [NRLMSISE-00](https://github.com/usnavalresearchlaboratory/trackercomponentlibrary/blob/master/3rd_Party_Libraries/nrlmsise-00-bc9a2fe/nrlmsise-00.h): `3rd_Party_Libraries/nrlmsise-00-bc9a2fe/nrlmsise-00.h`

### Other components

- **MATLAB user**

## Connections

- 3D assignment → Combinatorics: uses (evidence: `Assignment_Algorithms/3D_Assignment/Shared_C++_Code/assign3DBBCPP.cpp`)
- Mixture reduction → Matrix operations: uses Eigen (evidence: `Clustering_and_Mixture_Reduction/RunnalsGaussMixRed.cpp`)
- KD tree → Cluster sets: uses
- KD tree → Combinatorics: uses utilities (evidence: `Container_Classes/Shared_C++_Code/kdTreeCPP.cpp`)
- LBFGS interface → LBFGS engine: calls (evidence: `Mathematical_Functions/Continuous_Optimization/quasiNewtonLBFGS.c`)
- Binary search → Search routine: calls (evidence: `Mathematical_Functions/Searching/binSearchDoubles.c`)
- Spherical harmonics → Coordinate functions: uses (evidence: `Mathematical_Functions/Shared_C++_Code/spherHarmonicSetEvalCPP.cpp`)
- Spherical harmonics → Combinatorics: uses utilities (evidence: `Mathematical_Functions/Shared_C++_Code/spherHarmonicSetEvalCPP.cpp`)
- Star observations → SOFA library: calls SOFA (evidence: `Astronomical_Code/starCat2Obs.cpp`)
- Star observations → Coordinate functions: uses (evidence: `Astronomical_Code/starCat2Obs.cpp`)
- AIS decoder → AIS message types: decodes messages (evidence: `Transponders/decodeAISString.cpp`)
- Atmosphere model → NRLMSISE-00: uses model (evidence: `Atmosphere_and_Refraction/NRLMSISE00Alt4Pres.c`)
