View source: R/fuzzy_regression_helper_functions.R
compute_res | R Documentation |
Compute Residuals for Fuzzy Linear Model
compute_res(Y_fuzzy, Y_pred)
Y_fuzzy |
List. Fuzzified observed response variables. |
Y_pred |
List. Fuzzified predicted response variables. |
A list of fuzzy residuals.
# Example setup
Y_fuzzy <- list(
list(l = 2, x = 3, r = 4),
list(l = 5, x = 6, r = 7)
)
Y_pred <- list(
list(l = 1.5, x = 2.5, r = 3.5),
list(l = 4.5, x = 5.5, r = 6.5)
)
# Compute residuals
residuals <- compute_res(Y_fuzzy, Y_pred)
print(head(residuals, 6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.