diff --git a/python/src/LinearModelResult_doc.i.in b/python/src/LinearModelResult_doc.i.in index d1c42dd2400..befadb9cb98 100644 --- a/python/src/LinearModelResult_doc.i.in +++ b/python/src/LinearModelResult_doc.i.in @@ -200,3 +200,26 @@ Returns ------- intercept : Bool " + +// --------------------------------------------------------------------- + +%feature("docstring") OT::LinearModelResult::getDesign +"Returns if intercept is provided in the basis or not. + +Returns +------- +designMatrix: :class:`~openturns.Matrix` + The design matrix :math:`X`." + +// --------------------------------------------------------------------- + +%feature("docstring") OT::LinearModelResult::computeProjectionMatrix +"Returns if intercept is provided in the basis or not. + +Returns +------- +projectionMatrix: :class:`~openturns.SymmetricMatrix` + The projection matrix: + +.. math:: + H = X \left(X^T X\right)^{-1} X^T."