@topolab/tda 0.0.0-stage → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/CITATION.cff +72 -0
  3. package/LICENSE +21 -0
  4. package/README.md +100 -2
  5. package/SECURITY.md +34 -0
  6. package/THIRD_PARTY_LICENSES.md +697 -0
  7. package/dist/arrangement.d.ts +50 -0
  8. package/dist/arrangement.d.ts.map +1 -0
  9. package/dist/arrangement.js +63 -0
  10. package/dist/arrangement.js.map +1 -0
  11. package/dist/build_info.json +12 -0
  12. package/dist/check.d.ts +118 -0
  13. package/dist/check.d.ts.map +1 -0
  14. package/dist/check.js +298 -0
  15. package/dist/check.js.map +1 -0
  16. package/dist/complex.d.ts +543 -0
  17. package/dist/complex.d.ts.map +1 -0
  18. package/dist/complex.js +712 -0
  19. package/dist/complex.js.map +1 -0
  20. package/dist/diagram.d.ts +116 -0
  21. package/dist/diagram.d.ts.map +1 -0
  22. package/dist/diagram.js +238 -0
  23. package/dist/diagram.js.map +1 -0
  24. package/dist/diagram_of.d.ts +17 -0
  25. package/dist/diagram_of.d.ts.map +1 -0
  26. package/dist/diagram_of.js +40 -0
  27. package/dist/diagram_of.js.map +1 -0
  28. package/dist/experimental.d.ts +18 -0
  29. package/dist/experimental.d.ts.map +1 -0
  30. package/dist/experimental.js +16 -0
  31. package/dist/experimental.js.map +1 -0
  32. package/dist/flat.d.ts +64 -0
  33. package/dist/flat.d.ts.map +1 -0
  34. package/dist/flat.js +158 -0
  35. package/dist/flat.js.map +1 -0
  36. package/dist/index.d.ts +42 -0
  37. package/dist/index.d.ts.map +1 -0
  38. package/dist/index.js +31 -0
  39. package/dist/index.js.map +1 -0
  40. package/dist/ladder/tda_ladder.d.ts +223 -0
  41. package/dist/ladder/tda_ladder.js +1360 -0
  42. package/dist/ladder/tda_ladder_bg.wasm +0 -0
  43. package/dist/ladder/tda_ladder_bg.wasm.d.ts +43 -0
  44. package/dist/ladder.d.ts +306 -0
  45. package/dist/ladder.d.ts.map +1 -0
  46. package/dist/ladder.js +607 -0
  47. package/dist/ladder.js.map +1 -0
  48. package/dist/load.d.ts +53 -0
  49. package/dist/load.d.ts.map +1 -0
  50. package/dist/load.js +173 -0
  51. package/dist/load.js.map +1 -0
  52. package/dist/memory.d.ts +58 -0
  53. package/dist/memory.d.ts.map +1 -0
  54. package/dist/memory.js +2 -0
  55. package/dist/memory.js.map +1 -0
  56. package/dist/persistence.d.ts +349 -0
  57. package/dist/persistence.d.ts.map +1 -0
  58. package/dist/persistence.js +478 -0
  59. package/dist/persistence.js.map +1 -0
  60. package/dist/pkg/tda_wasm.d.ts +13 -0
  61. package/dist/pkg/tda_wasm.js +2528 -0
  62. package/dist/prepared.d.ts +62 -0
  63. package/dist/prepared.d.ts.map +1 -0
  64. package/dist/prepared.js +81 -0
  65. package/dist/prepared.js.map +1 -0
  66. package/dist/rivet_input.d.ts +93 -0
  67. package/dist/rivet_input.d.ts.map +1 -0
  68. package/dist/rivet_input.js +132 -0
  69. package/dist/rivet_input.js.map +1 -0
  70. package/dist/source.d.ts +43 -0
  71. package/dist/source.d.ts.map +1 -0
  72. package/dist/source.js +99 -0
  73. package/dist/source.js.map +1 -0
  74. package/dist/tda.wasm +0 -0
  75. package/dist/two_parameter.d.ts +243 -0
  76. package/dist/two_parameter.d.ts.map +1 -0
  77. package/dist/two_parameter.js +275 -0
  78. package/dist/two_parameter.js.map +1 -0
  79. package/dist/types.d.ts +146 -0
  80. package/dist/types.d.ts.map +1 -0
  81. package/dist/types.js +2 -0
  82. package/dist/types.js.map +1 -0
  83. package/dist/vineyard.d.ts +278 -0
  84. package/dist/vineyard.d.ts.map +1 -0
  85. package/dist/vineyard.js +236 -0
  86. package/dist/vineyard.js.map +1 -0
  87. package/package.json +77 -4
  88. package/src/arrangement.ts +96 -0
  89. package/src/check.ts +338 -0
  90. package/src/complex.ts +1179 -0
  91. package/src/diagram.ts +299 -0
  92. package/src/diagram_of.ts +40 -0
  93. package/src/experimental.ts +17 -0
  94. package/src/flat.ts +204 -0
  95. package/src/index.ts +181 -0
  96. package/src/ladder.ts +903 -0
  97. package/src/load.ts +201 -0
  98. package/src/memory.ts +58 -0
  99. package/src/persistence.ts +752 -0
  100. package/src/prepared.ts +111 -0
  101. package/src/rivet_input.ts +195 -0
  102. package/src/source.ts +132 -0
  103. package/src/two_parameter.ts +480 -0
  104. package/src/types.ts +163 -0
  105. package/src/vineyard.ts +463 -0
@@ -0,0 +1,543 @@
1
+ import type { PointCloud } from './check.js';
2
+ import type { Complex, CubicalComplex, DistanceMatrix, Grid, BuilderPersistence, BuilderPersistenceOptions } from './types.js';
3
+ /** The number of points of a distance matrix, after its checks. */
4
+ export declare function distanceMatrix(v: unknown, name: string): number;
5
+ /**
6
+ * Whether the input of a Rips function is a distance matrix, after the type
7
+ * check of either form. A key whose value is `undefined` counts as absent.
8
+ */
9
+ export declare function isMatrix(v: unknown, name: string): boolean;
10
+ /** Options of {@link ripsComplex}. */
11
+ export interface RipsComplexOptions {
12
+ /** Largest edge kept, positive (`Infinity` keeps every pair). Required. */
13
+ maxEdgeLength: number;
14
+ /** Largest simplex dimension, a non-negative integer. Default 3. */
15
+ maxSimplexDim?: number;
16
+ }
17
+ /**
18
+ * The Vietoris–Rips complex of a point cloud or of a distance matrix: every
19
+ * point a vertex at 0, every pair at distance `<= maxEdgeLength` an edge at
20
+ * that distance, every clique of up to `maxSimplexDim + 1` points a simplex
21
+ * at its longest edge. Built by the Rust core (clique enumeration over a
22
+ * sorted neighbour graph); distances in double precision in GUDHI's order,
23
+ * so the values are GUDHI's `Rips_complex`'s, bit for bit. A distance matrix
24
+ * is read in its strict lower triangle, as GUDHI reads it; none of its
25
+ * entries may be NaN or negative (`Infinity` is an absent edge). A point
26
+ * cloud with two points whose squared distance overflows double precision
27
+ * is refused (a `RangeError`: rescale it), and so is an input with both `coords` and
28
+ * `distances`. Complexes above 2^25 simplices are refused (a `RangeError`
29
+ * whose message starts with `input too large:`). Values on the
30
+ * `'edgeLength'` scale.
31
+ */
32
+ export declare function ripsComplex(points: PointCloud | DistanceMatrix, opts: RipsComplexOptions): Complex;
33
+ /** Options of {@link cechComplex}. */
34
+ export interface CechComplexOptions {
35
+ /** Largest radius of a smallest enclosing ball, positive (`Infinity` allowed). Required. */
36
+ maxRadius: number;
37
+ /** Largest simplex dimension, a non-negative integer. Default 3. */
38
+ maxSimplexDim?: number;
39
+ }
40
+ /**
41
+ * The Čech complex of a point cloud (at least 2 points): every vertex set
42
+ * whose smallest enclosing ball has radius `<= maxRadius`, up to
43
+ * `maxSimplexDim`, valued by that radius (exact geometry; scale
44
+ * `'radius'`). It grows combinatorially; {@link cechPersistence} computes
45
+ * its diagram from the far smaller Delaunay–Čech complex for points in
46
+ * dimension 1 to 3. The output is a filtration {@link persistence} accepts:
47
+ * where the input's ties are not exact in double precision, rounding can put
48
+ * a face a few ulps above a coface, and the builder raises such a coface to
49
+ * its faces' values (a face is never lowered).
50
+ *
51
+ * Complexes above 2^25 simplices are refused while they are built (a
52
+ * `RangeError` whose message starts with `input too large:`). The builder
53
+ * keeps the smallest enclosing ball of every simplex below `maxSimplexDim`
54
+ * for its cofaces, so memory can run out first (`TOO_LARGE`).
55
+ */
56
+ export declare function cechComplex(points: PointCloud, opts: CechComplexOptions): Complex;
57
+ /** Options of {@link cechPersistence}. */
58
+ export interface CechPersistenceOptions extends CechComplexOptions, BuilderPersistenceOptions {
59
+ }
60
+ /**
61
+ * The persistence of the Čech complex of a point cloud ({@link cechComplex}),
62
+ * built and reduced in one call. For points in dimension 1 to 3 it is
63
+ * computed on the Delaunay–Čech complex, whose diagram is the Čech
64
+ * complex's ([reference](https://topolab.ai/tda/docs/references/#bauer-and-edelsbrunner-2017)), and `complex: true`
65
+ * returns that complex; above dimension 3 on the full Čech complex, whose
66
+ * values are monotone as built (see {@link cechComplex}).
67
+ * Homology up to `maxSimplexDim`; in that top dimension a truncated full
68
+ * Čech complex has classes only the truncation creates, the Delaunay–Čech
69
+ * complex none once `maxSimplexDim` reaches the point dimension.
70
+ */
71
+ export declare function cechPersistence(points: PointCloud, opts: CechPersistenceOptions): BuilderPersistence;
72
+ /**
73
+ * What `flatTolerance` did to a cloud: it was projected onto its
74
+ * least-squares line (`rank` 1) or plane (`rank` 2), and no point moved
75
+ * farther than `maxDistance` (input units, computed in double).
76
+ */
77
+ export interface Flattened {
78
+ /** The dimension of the line (1) or plane (2) the points were projected onto. */
79
+ rank: 1 | 2;
80
+ /** The largest distance a point moved. */
81
+ maxDistance: number;
82
+ }
83
+ /** The complex of {@link alphaComplex} or {@link delaunayCechComplex}. */
84
+ export interface FlattenableComplex extends Complex {
85
+ /** Present only when `flatTolerance` flattened the input: the complex is then that of the projected points. */
86
+ flattened?: Flattened;
87
+ }
88
+ /** The result of {@link alphaPersistence}. */
89
+ export interface AlphaPersistence extends BuilderPersistence<FlattenableComplex> {
90
+ /** Present only when `flatTolerance` flattened the input. */
91
+ flattened?: Flattened;
92
+ }
93
+ /** Options of {@link delaunayCechComplex}. */
94
+ export interface DelaunayCechComplexOptions {
95
+ /** Largest enclosing-ball radius kept, positive (`Infinity` keeps the whole triangulation). Required. */
96
+ maxRadius: number;
97
+ /** Largest simplex dimension, a non-negative integer. Default 3 (the triangulation has none above the point dimension). */
98
+ maxSimplexDim?: number;
99
+ /**
100
+ * Opt-in flattening, a finite number `>= 0`; default off. A cloud in 2 or
101
+ * 3 dimensions of full exact affine rank whose least-squares line (tried
102
+ * first) or plane moves no point farther than `flatTolerance` times its
103
+ * extent (the largest distance from the centroid) is projected onto it,
104
+ * and the result is the exact Delaunay–Čech complex of the projected
105
+ * points, with `flattened`. Exactly flat input is never changed.
106
+ */
107
+ flatTolerance?: number;
108
+ }
109
+ /**
110
+ * The Delaunay–Čech complex of points in dimension 1, 2 or 3: every face of
111
+ * the Delaunay triangulation, valued by the radius of the smallest ball
112
+ * enclosing its vertices (for a simplex of both complexes the value
113
+ * {@link cechComplex} gives it, bit for bit; scale `'radius'`). Its diagram
114
+ * is the Čech complex's, from a far smaller complex. Repeated points keep
115
+ * their first copy. Cospherical points are triangulated by exact predicates
116
+ * with a symbolic perturbation of fixed priority, so the complex is a pure
117
+ * function of the input.
118
+ */
119
+ export declare function delaunayCechComplex(points: PointCloud, opts: DelaunayCechComplexOptions): FlattenableComplex;
120
+ /** Options of {@link alphaComplex}. */
121
+ export interface AlphaComplexOptions {
122
+ /**
123
+ * The weight of each point, a squared radius (finite, non-negative): the
124
+ * regular triangulation's weight, not a coordinate. Default: all 0, the
125
+ * unweighted alpha complex.
126
+ */
127
+ weights?: Float64Array | number[];
128
+ /** Drop the simplices valued above this squared radius, positive (`Infinity` keeps all). Default `Infinity`. */
129
+ maxSquaredRadius?: number;
130
+ /**
131
+ * Opt-in flattening, a finite number `>= 0`; default off. A cloud of full
132
+ * exact affine rank whose least-squares line (tried first) or plane moves
133
+ * no point farther than `flatTolerance` times its extent (the largest
134
+ * distance from the centroid) is projected onto it, and the result is the
135
+ * exact (weighted) alpha complex of the projected points, weights
136
+ * unchanged, with `flattened`. Exactly flat input is never changed.
137
+ */
138
+ flatTolerance?: number;
139
+ }
140
+ /**
141
+ * The (weighted) alpha complex of points in three dimensions, over their
142
+ * exact regular triangulation: values are squared radii (scale `'squaredRadius'`),
143
+ * a vertex at minus its weight. Of the points at one position the heaviest
144
+ * is the vertex (the smallest index on a tie); the others are hidden, as are
145
+ * points whose power cell is empty. Without a cutoff, near-degenerate input can
146
+ * end with astronomically large values for the last tetrahedra, genuine
147
+ * values but rarely wanted; the filtration is monotone, so a cutoff leaves a
148
+ * closed complex.
149
+ */
150
+ export declare function alphaComplex(points: PointCloud, opts?: AlphaComplexOptions): FlattenableComplex;
151
+ /** Options of {@link alphaPersistence}. */
152
+ export interface AlphaPersistenceOptions extends AlphaComplexOptions, BuilderPersistenceOptions {
153
+ }
154
+ /** The persistence of {@link alphaComplex}, built and reduced in one call: homology up to dimension 3. */
155
+ export declare function alphaPersistence(points: PointCloud, opts?: AlphaPersistenceOptions): AlphaPersistence;
156
+ /** Options of {@link coupledAlphaComplex}. */
157
+ export interface CoupledAlphaComplexOptions {
158
+ /** One colour per point: 0 for a survivor, 1 for a deleted point. Required. */
159
+ colors: ArrayLike<number>;
160
+ /** Inclusive cutoff on the squared radius, non-negative (0 keeps the vertices and the simplices of coincident points). Default `Infinity`. */
161
+ maxSquaredRadius?: number;
162
+ /** Largest simplex dimension, an integer from 0 to 3. Default 3. */
163
+ maxSimplexDim?: number;
164
+ }
165
+ /**
166
+ * The coupled alpha complex of a planar two-colour point cloud: the nerve of
167
+ * the sets `B(p, r) ∩ Vor(p, points of p's colour)` (closed balls cut by
168
+ * each colour's own Voronoi cells) ([reference](https://topolab.ai/tda/docs/references/#reani-and-bobrowski-2021), Def. 3.1). A simplex enters at the smallest squared
169
+ * radius at which its vertices' sets meet (scale `'squaredRadius'`). The
170
+ * simplices whose vertices all have colour 0 form the alpha complex of the
171
+ * survivors, with that complex's values up to rounding, and the whole
172
+ * complex has, at every radius, the homotopy type of the union of all the
173
+ * balls, so the two rows of a commutative ladder come from one call (see
174
+ * https://topolab.ai/tda/docs/guides/coupled-alpha/). Vertex ids are input indices, coincident points
175
+ * included. No flag completion and no perturbation.
176
+ *
177
+ * Bounded by design: at most 24 points and simplices up to dimension 3,
178
+ * each birth found by enumerating every candidate minimizer of a planar
179
+ * convex problem in IEEE binary128 (quadruple precision, in software).
180
+ * Dimension 3 holds the whole nerve for generic input; dimension 2
181
+ * suffices for H₀, H₁ and their inclusion maps.
182
+ * Cell membership uses a relative tolerance of 1e-12 after the input is
183
+ * translated and scaled to unit size.
184
+ *
185
+ * There is no `coupledAlphaPersistence`: the whole complex has the
186
+ * homotopy type of the union of all the balls (the diagram of the planar
187
+ * alpha complex of all the points), and its use is the inclusion of the
188
+ * survivors' subcomplex, which {@link persistence} of either complex does
189
+ * not give.
190
+ */
191
+ export declare function coupledAlphaComplex(points: PointCloud, opts: CoupledAlphaComplexOptions): Complex;
192
+ /** Options of {@link witnessComplex}. */
193
+ export interface WitnessComplexOptions {
194
+ /** The number of landmarks, chosen by farthest-point sampling, a positive integer. Required. */
195
+ landmarks: number;
196
+ /** The largest relaxation `a` (a squared length), non-negative. Required. */
197
+ maxSquaredRelaxation: number;
198
+ /** Largest simplex dimension, a non-negative integer. Default 3. */
199
+ maxSimplexDim?: number;
200
+ }
201
+ /**
202
+ * The Euclidean (relaxed weak) witness complex of a point cloud ([reference](https://topolab.ai/tda/docs/references/#de-silva-and-carlsson-2004)), relaxed as in ([reference](https://topolab.ai/tda/docs/references/#boissonnat-guibas-and-oudot-2009)), on
203
+ * squared distances: a set of landmarks is a simplex at the smallest
204
+ * `a <= maxSquaredRelaxation` at which it and its faces are a-witnessed, a
205
+ * witness w a-witnessing it when its squared distance to the farthest of
206
+ * them is at most `a` more than its squared distance to the nearest other
207
+ * landmark (scale `'squaredRelaxation'`). Landmarks are chosen by
208
+ * deterministic farthest-point sampling; vertex ids index the landmarks in
209
+ * selection order, not the input points. The strong witness complex is not
210
+ * implemented. A cloud with two points whose squared distance overflows
211
+ * double precision is refused (a `RangeError`: rescale it).
212
+ */
213
+ export declare function witnessComplex(points: PointCloud, opts: WitnessComplexOptions): Complex;
214
+ /**
215
+ * Numerical diagnostics of the k-fold cover builder. `intervalAnomalies`
216
+ * must be 0; anything else means the rhomboid face poset came out
217
+ * incomplete, which cannot happen for input in general position.
218
+ */
219
+ export interface KFoldCoverDiagnostics {
220
+ /** Cells of the order-k mosaic before octahedra are split into tetrahedra. */
221
+ mosaicCells: number;
222
+ /** Non-simplicial (generation-2) cells that had to be split. */
223
+ octahedra: number;
224
+ /** 4-rhomboids discovered by the level sweep (or by the exact enumeration, see `usedExactFallback`). */
225
+ topRhomboids: number;
226
+ /**
227
+ * Mosaic cells (vertices included) whose squared radius came out as
228
+ * `Infinity` from overflow or dependent support, counted over all radii,
229
+ * including cells removed by a cutoff. Finite radii are never clipped.
230
+ */
231
+ clampedCells: number;
232
+ /** Orientation tests that needed exact arithmetic to decide their sign. */
233
+ exactSignFallbacks: number;
234
+ /** Must be 0. See above. */
235
+ intervalAnomalies: number;
236
+ /**
237
+ * True when the level sweep could not be certified and the top rhomboids
238
+ * were found by the exact O(n^5) enumeration instead (a cloud on one
239
+ * sphere to within ~1e-10, say): the exact result, only slower. Exactly
240
+ * cospherical input is refused instead, and above 128 points the call
241
+ * throws rather than run the exact path.
242
+ */
243
+ usedExactFallback: boolean;
244
+ /** 4 · (bounding-box diagonal)², a scale of the input; informational only (no radius is clipped to it). */
245
+ squaredRadiusBound: number;
246
+ }
247
+ /**
248
+ * The k-fold cover complex: the complex, the k-subset of the input each
249
+ * vertex stands for, and the diagnostics. Vertex ids index `mosaicVertices`,
250
+ * not the input points.
251
+ */
252
+ export interface KFoldCoverComplex extends Complex {
253
+ /** `mosaicVertices[i]`: the sorted k-subset of input indices vertex `i` stands for. */
254
+ mosaicVertices: number[][];
255
+ diagnostics: KFoldCoverDiagnostics;
256
+ }
257
+ /** Options of {@link kFoldCoverComplex}. */
258
+ export interface KFoldCoverComplexOptions {
259
+ /** The cover multiplicity, a positive integer (at least `k + 3` points are needed). Required. */
260
+ k: number;
261
+ /** Drop the simplices valued above this squared radius, positive (`Infinity` keeps all). Default `Infinity`. */
262
+ maxSquaredRadius?: number;
263
+ /** Largest simplex dimension, a non-negative integer. Default 3 (the mosaic's own dimension). */
264
+ maxSimplexDim?: number;
265
+ }
266
+ /**
267
+ * The k-fold cover complex of unweighted points in three dimensions: the
268
+ * order-k Delaunay mosaic filtered by the squared radius function (scale
269
+ * `'squaredRadius'`), the exact nerve of the k-fold cover, so its
270
+ * persistence is the k-fold cover's ([reference](https://topolab.ai/tda/docs/references/#edelsbrunner-and-osang-2018)). `k = 1` is the
271
+ * alpha complex. The input must be genuinely three-dimensional and must not
272
+ * repeat a point; exactly cospherical input that makes two order-k sites
273
+ * coincide (an integer grid from `k = 2`) is refused: perturb it. The mosaic
274
+ * is a pure function of the input.
275
+ */
276
+ export declare function kFoldCoverComplex(points: PointCloud, opts: KFoldCoverComplexOptions): KFoldCoverComplex;
277
+ /** Options of {@link kFoldCoverPersistence}. */
278
+ export interface KFoldCoverPersistenceOptions extends KFoldCoverComplexOptions, BuilderPersistenceOptions {
279
+ }
280
+ /** The persistence of {@link kFoldCoverComplex}, built and reduced in one call: homology up to `maxSimplexDim`. */
281
+ export declare function kFoldCoverPersistence(points: PointCloud, opts: KFoldCoverPersistenceOptions): BuilderPersistence<KFoldCoverComplex>;
282
+ /**
283
+ * The semi-axes of the ellipsoids: a tangent-to-normal ratio `q >= 1`
284
+ * ([reference](https://topolab.ai/tda/docs/references/#canova-et-al), §2.1; the `d − 1` tangent semi-axes have length 1, the
285
+ * normal one `1/q`), or `'pca'`, the semi-axes from the normalized local
286
+ * singular values with a 1e-4 floor (the paper's Appendix 8.1).
287
+ */
288
+ export type EllipsoidAxes = number | 'pca';
289
+ /** Options of {@link ellipsoids}, shared by the ellipsoid complexes. */
290
+ export interface EllipsoidOptions {
291
+ /** The local PCA neighbourhood size, an integer `>= 2` (it counts the point itself and is clamped to the number of points). Required. */
292
+ neighbors: number;
293
+ /** The semi-axes: a ratio `>= 1` or `'pca'`. Required. */
294
+ axes: EllipsoidAxes;
295
+ }
296
+ /**
297
+ * The ellipsoid fitted at one point, for drawing. At value `f` of
298
+ * {@link ellipsoidRipsComplex} the ellipsoid has semi-axes
299
+ * `(f / 2) · semiAxes` along the rows of `frame`; at value `r` of
300
+ * {@link ellipsoidCechComplex}, `r · semiAxes`.
301
+ */
302
+ export interface EllipsoidGeometry {
303
+ /** The centre: the input point itself, not the neighbourhood mean. */
304
+ center: number[];
305
+ /** Orthonormal local frame, one row per principal axis, in descending order of local variance; `frame[0]` is the dominant (tangent) direction. */
306
+ frame: number[][];
307
+ /** The semi-axes at unit scale: descending, `semiAxes[0] === 1`. */
308
+ semiAxes: number[];
309
+ }
310
+ /**
311
+ * The ellipsoids the two ellipsoid complexes fit at every point (the same
312
+ * fitting, so a drawing matches the complex), for renderers that draw them.
313
+ */
314
+ export declare function ellipsoids(points: PointCloud, opts: EllipsoidOptions): EllipsoidGeometry[];
315
+ /** Options of {@link ellipsoidRipsComplex}. */
316
+ export interface EllipsoidRipsComplexOptions extends EllipsoidOptions {
317
+ /** Drop the simplices valued above this edge length, positive (`Infinity` keeps all). Default `Infinity`. */
318
+ maxEdgeLength?: number;
319
+ /** Largest simplex dimension, a non-negative integer. Default 2. */
320
+ maxSimplexDim?: number;
321
+ }
322
+ /**
323
+ * The Rips-type ellipsoid complex of points in two or three dimensions
324
+ * ([reference](https://topolab.ai/tda/docs/references/#canova-et-al)): each point
325
+ * gets an ellipsoid from a local PCA frame, an edge appears when two
326
+ * ellipsoids first touch, and higher simplices come from flag expansion. A
327
+ * flag complex, as the paper builds it (Definition 2.2), not a nerve. Values
328
+ * are twice the birth radius, on the Rips scale (`'edgeLength'`), so
329
+ * `axes: 1` (balls) reproduces {@link ripsComplex}.
330
+ *
331
+ * Complexes above 2^25 simplices are refused with a `RangeError` whose
332
+ * message starts with `input too large:`. Without `maxEdgeLength`, or with
333
+ * one at which the centroid of the points lies in every ellipsoid (every
334
+ * pair is then an edge), the count of every set of at most
335
+ * `maxSimplexDim + 1` points is checked before any pair is solved.
336
+ * Otherwise, when the vertices and edges alone exceed the limit, the pairs
337
+ * stop at the first edge past it; when only the higher cliques do, they
338
+ * are refused while they are enumerated.
339
+ */
340
+ export declare function ellipsoidRipsComplex(points: PointCloud, opts: EllipsoidRipsComplexOptions): Complex;
341
+ /** Options of {@link ellipsoidRipsPersistence}. */
342
+ export interface EllipsoidRipsPersistenceOptions extends EllipsoidRipsComplexOptions, BuilderPersistenceOptions {
343
+ }
344
+ /** The persistence of {@link ellipsoidRipsComplex}, built and reduced in one call: homology up to `maxSimplexDim`. */
345
+ export declare function ellipsoidRipsPersistence(points: PointCloud, opts: EllipsoidRipsPersistenceOptions): BuilderPersistence;
346
+ /** Options of {@link ellipsoidCechComplex}. */
347
+ export interface EllipsoidCechComplexOptions extends EllipsoidOptions {
348
+ /** Drop the simplices valued above this radius, positive (`Infinity` keeps all). Default `Infinity`; without one every triple reaches the solver, so pass one. */
349
+ maxRadius?: number;
350
+ /** Largest simplex dimension, a non-negative integer. Default 2. */
351
+ maxSimplexDim?: number;
352
+ }
353
+ /**
354
+ * The ellipsoidal Čech complex, a nerve ([reference](https://topolab.ai/tda/docs/references/#giunti-hill-and-ye)): the ellipsoids of {@link ellipsoidRipsComplex}, but a simplex enters
355
+ * only when the ellipsoids of all its vertices share a point, at the
356
+ * smallest radius at which they do (scale `'radius'`). The ellipsoids are
357
+ * convex, so the cover is good and the nerve lemma applies: its persistence
358
+ * is the persistence of the growing union of ellipsoids. It is a subcomplex
359
+ * of {@link ellipsoidRipsComplex} on the same input, each shared simplex
360
+ * entering no earlier here (at half the value, on the radius scale), and
361
+ * `axes: 1` reproduces {@link cechComplex}, simplex for simplex, with
362
+ * values equal to within a few ulps (measured to 1.8e-16 in 2D and 3.0e-16
363
+ * in 3D).
364
+ *
365
+ * Complexes above 2^25 simplices are refused while they are built (a
366
+ * `RangeError` whose message starts with `input too large:`). Without
367
+ * `maxRadius`, or with one at which the centroid of the points lies in
368
+ * every ellipsoid, the complex is every set of at most `maxSimplexDim + 1`
369
+ * points, and that count is checked before anything is solved.
370
+ */
371
+ export declare function ellipsoidCechComplex(points: PointCloud, opts: EllipsoidCechComplexOptions): Complex;
372
+ /** Options of {@link ellipsoidCechPersistence}. */
373
+ export interface EllipsoidCechPersistenceOptions extends EllipsoidCechComplexOptions, BuilderPersistenceOptions {
374
+ }
375
+ /** The persistence of {@link ellipsoidCechComplex}, built and reduced in one call: homology up to `maxSimplexDim`. */
376
+ export declare function ellipsoidCechPersistence(points: PointCloud, opts: EllipsoidCechPersistenceOptions): BuilderPersistence;
377
+ /** Options of {@link wings}, shared by the wing complex. */
378
+ export interface WingOptions {
379
+ /** The spine ratio q (spine half-length over wing length), in [0, 1]. Required. */
380
+ q: number;
381
+ /** The wing angle θ, in (0, π/2]. Required. */
382
+ theta: number;
383
+ /**
384
+ * The unit normal at every point, `[x0, y0, x1, y1, …]`, or the number of
385
+ * nearest neighbours (an integer `>= 2`) from which to estimate them by an
386
+ * osculating-circle fit. Required.
387
+ */
388
+ normals: number | Float64Array | number[];
389
+ }
390
+ /**
391
+ * How the unit normal α a wing was built from was obtained:
392
+ * `'supplied'` (the caller's, normalised), `'osculating'` (an
393
+ * osculating-circle fit on the k nearest neighbours ([reference](https://topolab.ai/tda/docs/references/#weng-and-zhao-2026), Eq. 3.1)), `'tangent'` (the fit was singular or its radius exceeded 1e6 times
394
+ * the local scale, so the 90° rotation of the PCA tangent pointing away from
395
+ * the neighbourhood centroid), or `'isolated'` (no neighbours: `+e_x`, a
396
+ * placeholder).
397
+ */
398
+ export type WingNormalSource = 'supplied' | 'osculating' | 'tangent' | 'isolated';
399
+ /**
400
+ * One wing of the wing complex, for drawing; the same normals the complex
401
+ * uses, so a drawing matches the diagram. Estimated normals carry the
402
+ * failure modes the source paper does not address (it works with exact
403
+ * normals): at an inflection the wing can point the wrong way, noise can
404
+ * reverse a wing, and k has to sit between the noise and the feature scale.
405
+ */
406
+ export interface WingGeometry {
407
+ /** The sample point, copied through. */
408
+ point: number[];
409
+ /** The unit normal α (Eq. 3.1) the wing was built from. */
410
+ normal: number[];
411
+ /** Where `normal` came from. */
412
+ normalSource: WingNormalSource;
413
+ /** Radius of the fitted osculating circle, `1/|κ|`; `Infinity` for supplied normals or a singular fit. */
414
+ curvatureRadius: number;
415
+ /** Mean distance to the k nearest neighbours, the scale the curvature clamp compares against; `Infinity` for supplied normals. */
416
+ neighborhoodScale: number;
417
+ /**
418
+ * The wing polygon at unit scale: six offsets from `point`, in the order
419
+ * A, B, C, D, C′, B′ (the concave hexagon of the paper's Eqs. 3.2–3.4). At
420
+ * scale ε vertex `v` is `point[c] + ε · outline[v][c]`.
421
+ */
422
+ outline: number[][];
423
+ }
424
+ /** The wings {@link wingComplex} builds, for renderers that draw them. */
425
+ export declare function wings(points: PointCloud, opts: WingOptions): WingGeometry[];
426
+ /** Options of {@link wingComplex}. */
427
+ export interface WingComplexOptions extends WingOptions {
428
+ /** Drop the edges that enter above this ε, positive. Default `Infinity`. */
429
+ maxEpsilon?: number;
430
+ /** Largest simplex dimension, a non-negative integer. Default 3. */
431
+ maxSimplexDim?: number;
432
+ }
433
+ /**
434
+ * The curvature-adaptive wing complex of a planar point cloud, a flag
435
+ * complex (not a nerve) ([reference](https://topolab.ai/tda/docs/references/#weng-and-zhao-2026)). Pair
436
+ * births are analytic; the 1-skeleton is expanded to a flag complex by the
437
+ * Rust core. Values on the wing scale ε (`'epsilon'`).
438
+ */
439
+ export declare function wingComplex(points: PointCloud, opts: WingComplexOptions): Complex;
440
+ /** Options of {@link wingPersistence}. */
441
+ export interface WingPersistenceOptions extends WingComplexOptions, BuilderPersistenceOptions {
442
+ }
443
+ /** The persistence of {@link wingComplex}, built and reduced in one call: homology up to `maxSimplexDim`. */
444
+ export declare function wingPersistence(points: PointCloud, opts: WingPersistenceOptions): BuilderPersistence;
445
+ /** Numerical diagnostics of the box filtration's growth engine. `iterationCapHits` must be 0. */
446
+ export interface BoxFiltrationDiagnostics {
447
+ /** Growth subproblems solved: `numBoxes · numSteps`. */
448
+ expansions: number;
449
+ /** Steepest-descent moves summed over all of them; a cost measure. */
450
+ descentSteps: number;
451
+ /** Must be 0: a subproblem that stalled numerically, whose box may be smaller than the paper's rule prescribes. */
452
+ iterationCapHits: number;
453
+ }
454
+ /** A box: its lower and its upper corner. */
455
+ export interface BoxExtent {
456
+ /** Lower corner, one coordinate per axis. */
457
+ lower: number[];
458
+ /** Upper corner, one coordinate per axis. */
459
+ upper: number[];
460
+ }
461
+ /**
462
+ * The box filtration: the complex (vertex `i` is the box grown from point
463
+ * `i`; values exactly the grid `{0, stepSize, …, numSteps · stepSize}`),
464
+ * the grid, the diagnostics and, on request, the grown boxes.
465
+ */
466
+ export interface BoxFiltration extends Complex {
467
+ /** m: the number of growth steps taken. */
468
+ numSteps: number;
469
+ /** π: the growth increment and the grid spacing. */
470
+ stepSize: number;
471
+ /** The growth aggressiveness the boxes were grown with. */
472
+ growth: number;
473
+ /** The last step at which an edge entered: the last interesting scale. */
474
+ maxBirthStep: number;
475
+ /** Edges of the 1-skeleton, before the dimension cap. */
476
+ numEdges: number;
477
+ /** With `boxes: true`, `boxes[step][i]`: box `i` at value `step · stepSize`. */
478
+ boxes?: BoxExtent[][];
479
+ diagnostics: BoxFiltrationDiagnostics;
480
+ }
481
+ /** Options of {@link boxFiltration}. */
482
+ export interface BoxFiltrationOptions {
483
+ /** π > 0, finite: the growth increment and the grid of values. Required. */
484
+ stepSize: number;
485
+ /**
486
+ * The growth aggressiveness, in [0, 1]: 0 never grows (the discrete
487
+ * complex); 1 grows every box to its whole neighbourhood (the ℓ∞ Rips
488
+ * filtration on the grid). The paper's experiments use about 0.5. Required.
489
+ */
490
+ growth: number;
491
+ /** Stop after this many steps, a positive integer. Default: the paper's m, the first step whose neighbourhood covers the whole cloud. */
492
+ maxSteps?: number;
493
+ /** Largest simplex dimension, a non-negative integer. Default 3. */
494
+ maxSimplexDim?: number;
495
+ /**
496
+ * Also return every box at every step, `(numSteps + 1) · n` records.
497
+ * Default `false`. The build holds those boxes either way, so the step
498
+ * limit of {@link boxFiltration} applies with `false` too.
499
+ */
500
+ boxes?: boolean;
501
+ }
502
+ /**
503
+ * The box filtration of points in two or three dimensions, a nerve
504
+ * ([reference](https://topolab.ai/tda/docs/references/#alvarado-gupta-and-krishnamoorthy)): every point starts
505
+ * as a degenerate box and grows, a step at a time, inside the ℓ∞ ball of
506
+ * radius `j · stepSize` around itself (scale `'growthRadius'`), following
507
+ * the paper's rule: growth is worth taking when it covers other points (each
508
+ * worth `growth`) for less than it costs in added width (each unit worth
509
+ * `1 − growth`). Simplices enter when their boxes first intersect; boxes
510
+ * have the Helly property, so the flag complex of the intersection graph is
511
+ * the nerve and the nerve theorem applies.
512
+ *
513
+ * Every value is a multiple of `stepSize`: compare diagrams only at equal
514
+ * `stepSize`. Deterministic, bit for bit: the steps are integer and the
515
+ * intersection tests exact. Duplicate, collinear and coincident points are
516
+ * accepted.
517
+ *
518
+ * The build holds every box at every step, whether or not `boxes` returns
519
+ * them: `(numSteps + 1) · n · 2d` box coordinates of 2^28 or more are
520
+ * refused, with `boxes` `true` or `false`, by a `RangeError` whose message
521
+ * starts with `input too large:` (a larger `stepSize` or a smaller
522
+ * `maxSteps` takes fewer steps).
523
+ */
524
+ export declare function boxFiltration(points: PointCloud, opts: BoxFiltrationOptions): BoxFiltration;
525
+ /** Options of {@link boxFiltrationPersistence}. */
526
+ export interface BoxFiltrationPersistenceOptions extends BoxFiltrationOptions, BuilderPersistenceOptions {
527
+ }
528
+ /**
529
+ * The persistence of {@link boxFiltration}, built and reduced in one call:
530
+ * homology up to `maxSimplexDim`. The step limit of {@link boxFiltration}
531
+ * applies, with `boxes` `true` or `false`.
532
+ */
533
+ export declare function boxFiltrationPersistence(points: PointCloud, opts: BoxFiltrationPersistenceOptions): BuilderPersistence<BoxFiltration>;
534
+ /** The grid's extents, fastest axis first (the engine's order), after its checks. */
535
+ export declare function gridArgs(v: unknown, name: string): number[];
536
+ /**
537
+ * Every cell of the cubical complex of an image or a volume, T-construction
538
+ * (each value on a top-dimensional cell, every lower cell at the smallest
539
+ * value of the top cells containing it), by the Rust core: the cells, values
540
+ * and order of GUDHI's `Bitmap_cubical_complex`.
541
+ */
542
+ export declare function cubicalComplex(image: Grid): CubicalComplex;
543
+ //# sourceMappingURL=complex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"complex.d.ts","sourceRoot":"","sources":["../src/complex.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAQ,UAAU,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACd,IAAI,EACJ,kBAAkB,EAClB,yBAAyB,EAE1B,MAAM,YAAY,CAAC;AA4DpB,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