pysolvegn.linear_rho#
- linear_rho(x)[source]#
Compute the linear robust cost function \(\rho(x) = x\) and its derivatives.
\[\rho'(x) = 1\]\[\rho''(x) = 0\]- Parameters:
x (ArrayLike) – Squared residuals \(x = \|R\|^2\). Shape
(N,).- Returns:
rho (numpy.ndarray) – The cost function values with shape
(N,).rho_prime (numpy.ndarray) – The first derivatives with shape
(N,).rho_double_prime (numpy.ndarray) – The second derivatives with shape
(N,).
- Return type:
Tuple[ndarray, ndarray, ndarray]