initial structure implemented

docs -> _docs
This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-12-01 14:20:56 +02:00
parent 9134c5db06
commit abc26d5c20
360 changed files with 3881 additions and 101 deletions
+32
View File
@@ -0,0 +1,32 @@
import numpy as np
class RobustKernels:
@staticmethod
def huber(residual: float, delta: float = 1.0) -> float:
raise NotImplementedError
@staticmethod
def cauchy(residual: float, c: float = 1.0) -> float:
raise NotImplementedError
@staticmethod
def tukey(residual: float, c: float = 4.685) -> float:
raise NotImplementedError
@staticmethod
def huber_weight(residual: float, delta: float = 1.0) -> float:
raise NotImplementedError
@staticmethod
def cauchy_weight(residual: float, c: float = 1.0) -> float:
raise NotImplementedError
@staticmethod
def compute_robust_covariance(
residuals: np.ndarray,
kernel: str = "huber",
**kwargs,
) -> np.ndarray:
raise NotImplementedError