Skip to content

Commit eeaa2f1

Browse files
authored
Refactor prior method to include x and y parameters
1 parent 9389445 commit eeaa2f1

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

uncertaintyx/tyx.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,17 @@ def lpu(
150150
return lpu_p(p.ndim, self.jac(p), u, diag)
151151

152152
@abstractmethod
153-
def prior(self, preset: str | None = None) -> np.ndarray:
153+
def prior(
154+
self,
155+
x: np.ndarray | None = None,
156+
y: np.ndarray | None = None,
157+
preset: str | None = None,
158+
) -> np.ndarray:
154159
r"""
155160
Returns a prior estimate of the parameters.
156161
162+
:param x: Samples :math:`x_{i} \in \mathbb{R}^{N}`.
163+
:param y: Samples :math:`y_{i} \in \mathbb{R}`.
157164
:param preset: The name of a specific parameter preset.
158165
:returns: The prior estimate :math:`\check{p} \in \mathbb{R}^{k}`.
159166
"""

0 commit comments

Comments
 (0)