Skip to content

Commit f25d59a

Browse files
committed
updated docstrings
1 parent c7b06fb commit f25d59a

File tree

1 file changed

+49
-30
lines changed

1 file changed

+49
-30
lines changed

pyest/gm/split.py

Lines changed: 49 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,8 @@ def recursive_split(p, split_opts, identify_split_components, *args):
890890
"""
891891
RECURSIVE_SPLIT Splits Gaussians recursively based on a splitting criterion
892892
893-
Required
894-
--------
893+
Parameters
894+
----------
895895
p: GaussianMixture
896896
mixture to be split
897897
split_opts: MixtureSplittingOptions
@@ -960,8 +960,8 @@ def recursive_split(p, split_opts, identify_split_components, *args):
960960
def id_variance(p, tol):
961961
"""identify components and split directions based on variance
962962
963-
Required
964-
--------
963+
Parameters
964+
----------
965965
p : GaussianMixture
966966
input Gaussian mixture to be considered for splitting
967967
tol : float
@@ -989,8 +989,8 @@ def id_variance(p, tol):
989989
def id_fos(p, jacobian_func, tol):
990990
"""identify components and split directions based on first-order stretching
991991
992-
Required
993-
--------
992+
Parameters
993+
----------
994994
p : GaussianMixture
995995
input Gaussian mixture to be considered for splitting
996996
jacobian_func : callable
@@ -1021,6 +1021,11 @@ def id_fos(p, jacobian_func, tol):
10211021
Informed Moment-Matching Gaussian Mixture Splitting,"
10221022
https://arxiv.org/abs/2412.00343, 2024
10231023
1024+
See Also
1025+
--------
1026+
id_usfos : uncertainty scaled first-order stretching
1027+
id_safos : spherical average first-order stretching
1028+
10241029
"""
10251030
split_mask = np.full(p.w.shape, False)
10261031
split_dir = np.full(p.m.shape, np.nan)
@@ -1036,8 +1041,8 @@ def id_fos(p, jacobian_func, tol):
10361041
def id_safos(p, jacobian_func, tol):
10371042
"""identify components and split directions based on spherical average first-order stretching
10381043
1039-
Required
1040-
--------
1044+
Parameters
1045+
----------
10411046
p : GaussianMixture
10421047
input Gaussian mixture to be considered for splitting
10431048
jacobian_func : callable
@@ -1077,8 +1082,8 @@ def id_safos(p, jacobian_func, tol):
10771082
def id_usfos(p, jacobian_func, tol):
10781083
"""identify components and split directions based on scaled first-order stretching
10791084
1080-
Required
1081-
--------
1085+
Parameters
1086+
----------
10821087
p : GaussianMixture
10831088
input Gaussian mixture to be considered for splitting
10841089
jacobian_func : callable
@@ -1117,8 +1122,8 @@ def id_usfos(p, jacobian_func, tol):
11171122
def id_sos(p, pdt_func, jacobian_func, tol, single_fn=False):
11181123
"""identify components and split directions based on nonlinear stretching
11191124
1120-
Required
1121-
--------
1125+
Parameters
1126+
----------
11221127
p : GaussianMixture
11231128
input Gaussian mixture to be considered for splitting
11241129
pdt_func : callable
@@ -1170,8 +1175,8 @@ def id_sos(p, pdt_func, jacobian_func, tol, single_fn=False):
11701175
def id_wussos(p, pdt_func, jacobian_func, tol, single_fn=False):
11711176
"""identify components and split directions based on scaled nonlinear stretching
11721177
1173-
Required
1174-
--------
1178+
Parameters
1179+
----------
11751180
p : GaussianMixture
11761181
input Gaussian mixture to be considered for splitting
11771182
pdt_func : callable
@@ -1238,8 +1243,8 @@ def id_solc(p, pdt_func, tol):
12381243
"""identify components and split directions based on second-order
12391244
linearization change
12401245
1241-
Required
1242-
--------
1246+
Parameters
1247+
----------
12431248
p : GaussianMixture
12441249
input Gaussian mixture to be considered for splitting
12451250
pdt_func : callable
@@ -1258,6 +1263,11 @@ def id_solc(p, pdt_func, tol):
12581263
.. [3] K. Tuggle, “Model Selection for Gaussian Mixture Model Filtering and
12591264
Sensor Scheduling,” Ph.D. dissertation, 2020.
12601265
1266+
See Also
1267+
--------
1268+
id_ussolc : uncertainty scaled second-order linearization change
1269+
id_wussolc : whitened uncertainty scaled second-order linearization change
1270+
12611271
"""
12621272
split_mask = np.full(p.w.shape, False)
12631273
split_dir = np.full(p.m.shape, np.nan)
@@ -1278,8 +1288,8 @@ def id_ussolc(p, pdt_func, tol):
12781288
"""identify components and split directions based on uncertainty scaled
12791289
second-order linearization change
12801290
1281-
Required
1282-
--------
1291+
Parameters
1292+
----------
12831293
p : GaussianMixture
12841294
input Gaussian mixture to be considered for splitting
12851295
pdt_func : callable
@@ -1306,6 +1316,10 @@ def id_ussolc(p, pdt_func, tol):
13061316
.. [3] K. Tuggle, “Model Selection for Gaussian Mixture Model Filtering and
13071317
Sensor Scheduling,” Ph.D. dissertation, 2020.
13081318
1319+
See Also
1320+
--------
1321+
id_solc : second-order linearization change
1322+
id_wussolc : whitened uncertainty scaled second-order linearization change
13091323
"""
13101324
split_mask = np.full(p.w.shape, False)
13111325
split_dir = np.full(p.m.shape, np.nan)
@@ -1329,8 +1343,8 @@ def id_wussolc(p, pdt_func, jacobian_func, tol, single_fn=False):
13291343
"""identify components and split directions based on output-whitened
13301344
uncertainty scaled second-order linearization change
13311345
1332-
Required
1333-
--------
1346+
Parameters
1347+
----------
13341348
p : GaussianMixture
13351349
input Gaussian mixture to be considered for splitting
13361350
pdt_func : callable
@@ -1360,6 +1374,11 @@ def id_wussolc(p, pdt_func, jacobian_func, tol, single_fn=False):
13601374
Informed Moment-Matching Gaussian Mixture Splitting,"
13611375
https://arxiv.org/abs/2412.00343, 2024
13621376
1377+
See Also
1378+
--------
1379+
id_solc : second-order linearization change
1380+
id_ussolc : uncertainty scaled second-order linearization change
1381+
13631382
"""
13641383
split_mask = np.full(p.w.shape, False)
13651384
split_dir = np.full(p.m.shape, np.nan)
@@ -1395,8 +1414,8 @@ def id_wussolc(p, pdt_func, jacobian_func, tol, single_fn=False):
13951414
def id_sasos(p, pdt_func, tol):
13961415
"""identify components and split directions based on scaled nonlinear stretching
13971416
1398-
Required
1399-
--------
1417+
Parameters
1418+
----------
14001419
p : GaussianMixture
14011420
input Gaussian mixture to be considered for splitting
14021421
pdt_func : callable
@@ -1444,8 +1463,8 @@ def id_sasos(p, pdt_func, tol):
14441463
def id_wsasos(p, pdt_func, jacobian_func, tol, single_fn=False):
14451464
"""identify components and split directions based on scaled nonlinear stretching
14461465
1447-
Required
1448-
--------
1466+
Parameters
1467+
----------
14491468
p : GaussianMixture
14501469
input Gaussian mixture to be considered for splitting
14511470
pdt_func : callable
@@ -1508,8 +1527,8 @@ def id_wsasos(p, pdt_func, jacobian_func, tol, single_fn=False):
15081527
def id_alodt(p, g, sigma_pt_opts, tol):
15091528
"""identify components and split directions based on sigma point curvature
15101529
1511-
Required
1512-
--------
1530+
Parameters
1531+
----------
15131532
p : GaussianMixture
15141533
input Gaussian mixture to be considered for splitting
15151534
g : callable
@@ -1568,8 +1587,8 @@ def id_sadl(p, jacobian_func, g, sigma_pt_opts, tol):
15681587
"""identify components and split directions based on the difference in
15691588
deterministic and statistical linearization
15701589
1571-
Required
1572-
--------
1590+
Parameters
1591+
----------
15731592
p : GaussianMixture
15741593
input Gaussian mixture to be considered for splitting
15751594
jacobian_func : callable
@@ -1626,8 +1645,8 @@ def id_wussadl(p, jacobian_func, g, sigma_pt_opts, tol, deterministic_whitening=
16261645
"""identify components and split directions based on output-whitened
16271646
uncertainty scaled statistical and deterministic linearization difference
16281647
1629-
Required
1630-
--------
1648+
Parameters
1649+
----------
16311650
p : GaussianMixture
16321651
input Gaussian mixture to be considered for splitting
16331652
jacobian_func : callable

0 commit comments

Comments
 (0)