@@ -52,18 +52,20 @@ def _fit(
5252 :param design_loc: Design matrix of location model.
5353 :param design_loc: Design matrix of scale model.
5454 :param constraints_loc: : Constraints for location model.
55- Array with constraints in rows and model parameters in columns.
56- Each constraint contains non-zero entries for the a of parameters that
57- has to sum to zero. This constraint is enforced by binding one parameter
55+ Array with constraints in columns and model parameters in rows.
56+ Each constraint contains non-zero entries for the constrained parameters that
57+ have to sum to zero. For a non-constrained parameter the revelant constraint column
58+ contains 1 in the parameter row. This constraint is enforced by binding one parameter
5859 to the negative sum of the other parameters, effectively representing that
5960 parameter as a function of the other parameters. This dependent
6061 parameter is indicated by a -1 in this array, the independent parameters
6162 of that constraint (which may be dependent at an earlier constraint)
6263 are indicated by a 1.
6364 :param constraints_scale: : Constraints for scale model.
64- Array with constraints in rows and model parameters in columns.
65- Each constraint contains non-zero entries for the a of parameters that
66- has to sum to zero. This constraint is enforced by binding one parameter
65+ Array with constraints in columns and model parameters in rows.
66+ Each constraint contains non-zero entries for the constrained parameters that
67+ have to sum to zero. For a non-constrained parameter the revelant constraint column
68+ contains 1 in the parameter row. This constraint is enforced by binding one parameter
6769 to the negative sum of the other parameters, effectively representing that
6870 parameter as a function of the other parameters. This dependent
6971 parameter is indicated by a -1 in this array, the independent parameters
@@ -519,9 +521,10 @@ def wald(
519521 :param constraints_loc: Constraints for location model. Can be one of the following:
520522
521523 - np.ndarray:
522- Array with constraints in rows and model parameters in columns.
523- Each constraint contains non-zero entries for the a of parameters that
524- has to sum to zero. This constraint is enforced by binding one parameter
524+ Array with constraints in columns and model parameters in rows.
525+ Each constraint contains non-zero entries for the constrained parameters that
526+ have to sum to zero. For a non-constrained parameter the revelant constraint column
527+ contains 1 in the parameter row. This constraint is enforced by binding one parameter
525528 to the negative sum of the other parameters, effectively representing that
526529 parameter as a function of the other parameters. This dependent
527530 parameter is indicated by a -1 in this array, the independent parameters
@@ -552,9 +555,10 @@ def wald(
552555 :param constraints_scale: Constraints for scale model. Can be one of the following:
553556
554557 - np.ndarray:
555- Array with constraints in rows and model parameters in columns.
556- Each constraint contains non-zero entries for the a of parameters that
557- has to sum to zero. This constraint is enforced by binding one parameter
558+ Array with constraints in columns and model parameters in rows.
559+ Each constraint contains non-zero entries for the constrained parameters that
560+ have to sum to zero. For a non-constrained parameter the revelant constraint column
561+ contains 1 in the parameter row. This constraint is enforced by binding one parameter
558562 to the negative sum of the other parameters, effectively representing that
559563 parameter as a function of the other parameters. This dependent
560564 parameter is indicated by a -1 in this array, the independent parameters
@@ -1896,19 +1900,21 @@ def wald(
18961900 This makes sense for number of genes, time, pseudotime or space
18971901 for example.
18981902 :param constraints_loc: : Constraints for location model.
1899- Array with constraints in rows and model parameters in columns.
1900- Each constraint contains non-zero entries for the a of parameters that
1901- has to sum to zero. This constraint is enforced by binding one parameter
1903+ Array with constraints in columns and model parameters in rows.
1904+ Each constraint contains non-zero entries for the constrained parameters that
1905+ have to sum to zero. For a non-constrained parameter the revelant constraint column
1906+ contains 1 in the parameter row. This constraint is enforced by binding one parameter
19021907 to the negative sum of the other parameters, effectively representing that
19031908 parameter as a function of the other parameters. This dependent
19041909 parameter is indicated by a -1 in this array, the independent parameters
19051910 of that constraint (which may be dependent at an earlier constraint)
19061911 are indicated by a 1. It is highly recommended to only use this option
19071912 together with prebuilt design matrix for the location model, dmat_loc.
19081913 :param constraints_scale: : Constraints for scale model.
1909- Array with constraints in rows and model parameters in columns.
1910- Each constraint contains non-zero entries for the a of parameters that
1911- has to sum to zero. This constraint is enforced by binding one parameter
1914+ Array with constraints in columns and model parameters in rows.
1915+ Each constraint contains non-zero entries for the constrained parameters that
1916+ have to sum to zero. For a non-constrained parameter the revelant constraint column
1917+ contains 1 in the parameter row. This constraint is enforced by binding one parameter
19121918 to the negative sum of the other parameters, effectively representing that
19131919 parameter as a function of the other parameters. This dependent
19141920 parameter is indicated by a -1 in this array, the independent parameters
0 commit comments