KronMean¶
- class glimix_core.mean.KronMean(A, X)[source]¶
Kronecker mean function, (A⊗X)vec(B).
Let
n be the number of samples;
p the number of traits; and
c the number of covariates.
The mathematical representation is
𝐦 = (A⊗X)vec(B)
where A is a p×p trait design matrix of fixed effects and X is a n×c sample design matrix of fixed effects. B is a c×p matrix of fixed-effect sizes.
- __init__(A, X)[source]¶
Constructor.
- Parameters
A (array_like) – p×p array.
X (array_like) – n×c array.
Methods
__init__(A, X)Constructor.
gradient()Gradient of the linear mean function.
value()Kronecker mean function.
Attributes
AMatrix A.
AXA ⊗ X.
BEffect-sizes parameter, B.
XMatrix X.
nameName of this function.
nparamsNumber of parameters.