Estimate a conditional mean by weighted least squares with an unnormalized
graph Laplacian penalty. Repeated observations at a vertex remain separate.
Unobserved components return NA rather than an arbitrary constant.
Usage
fit.masked.graph.field(operator, vertex, y, lambda, weights = NULL)
Arguments
- operator
An unnormalized metric.graph.lowpass.operator.
- vertex
Integer vertex index for each observed response.
- y
Finite numeric observed responses (no missing-value placeholders).
- lambda
Positive smoothing parameter.
- weights
Positive observation weights; normalized to sum to one.
Value
A list with vertex fitted values, support flags, observation weights,
objective, and relative linear-system residual.
Examples
op <- metric.graph.lowpass.operator(list(2L, c(1L, 3L), 2L),
list(1, c(1, 1), 1))
fit <- fit.masked.graph.field(op, vertex = c(1, 3), y = c(2, 8), lambda = 0.5)
fit$fitted
#> [1] 3.5 5.0 6.5