# NOT RUN {
dimac(sigs = matrix(c(0.05, 0.10, 0.30, 0.55,
0.04, 0.11, 0.29, 0.56,
0.10, 0.05, 0.35, 0.50,
0.12, 0.03, 0.37, 0.48,
0.10, 0.06, 0.35, 0.49,
0.05, 0.15, 0.35, 0.45), ncol=6),
id = c("ID_1", "ID_2", "ID_3", "ID_4", "ID_5", "ID_6"),
type = c("Type_1", "Type_2", "Type_3"),
loc = matrix(c(1, 3, 5, 2, 4, 6), ncol=2),
dist_meas = 1,
gamma = NA)
dimac(sigs = matrix(c(0.05, 0.10, 0.30, 0.55,
0.04, 0.11, 0.29, 0.56,
0.10, 0.05, 0.35, 0.50,
0.12, 0.03, 0.37, 0.48,
0.10, 0.06, 0.35, 0.49,
0.05, 0.15, 0.35, 0.45), ncol=6),
id = c("ID_1", "ID_2", "ID_3", "ID_4", "ID_5", "ID_6"),
type = c("Type_1", "Type_2", "Type_3"),
loc = matrix(c(1, 3, 5, 2, 4, 6), ncol=2),
dist_meas = 2,
gamma = NA)
dimac(sigs = matrix(c(0.05, 0.10, 0.30, 0.55,
0.04, 0.11, 0.29, 0.56,
0.10, 0.05, 0.35, 0.50,
0.12, 0.03, 0.37, 0.48,
0.10, 0.06, 0.35, 0.49,
0.05, 0.15, 0.35, 0.45), ncol=6),
id = c("ID_1", "ID_2", "ID_3", "ID_4", "ID_5", "ID_6"),
type = c("Type_1", "Type_2", "Type_3"),
loc = matrix(c(1, 3, 5, 2, 4, 6), ncol=2),
dist_meas = 3,
gamma = 0.5)
dimac(sigs = matrix(c(0.05, 0.10, 0.30, 0.55,
0.04, 0.11, 0.29, 0.56,
0.10, 0.05, 0.35, 0.50,
0.12, 0.03, 0.37, 0.48,
0.10, 0.06, 0.35, 0.49,
0.05, 0.15, 0.35, 0.45), ncol=6),
id = c("ID_1", "ID_2", "ID_3", "ID_4", "ID_5", "ID_6"),
type = c("Type_1", "Type_2", "Type_3"),
loc = matrix(c(1, 3, 5, 2, 4, 6), ncol=2))
# }
Run the code above in your browser using DataLab