fm.check_monotonicity_sort_insert {Rfmtool} | R Documentation |
Checks monotonicity of the set function v in standard representation using insert sort.
fm.check_monotonicity_sort_insert(v, indices, env=NULL)
v |
matrix v stores fuzzy measurements consecutively in cardinal order. |
indices |
The indices can be used at subsequent steps of monotonicity verification. This function is called after merge sort, so the indices are already precomputed. |
env |
Environment variable obtained from fm.Init(n). |
output |
The output is a list of components (True/False, indices, values). The indices and values can be used at subsequent steps of monotonicity verification (e.g., values slightly perturbed) |
Gleb Beliakov, Andrei Kelarev, Quan Vu, Daniela L. Calderon, Deakin University
env<-fm.Init(3)
v <- fm.generate_fm_sorting(1, 1000, 0, env)
out <- fm.check_monotonicity_sort_merge(v, NULL, env)
out$V[1] = out$V[1] *1.1
out<- fm.check_monotonicity_sort_insert(out$V, out$index, env)
out$out