int m;
SparseStressMajorizationSmoother sm;
real lambda = 0;
- /*int maxit_sm = 1000, i; tol = 0.001*/
int i;
SparseMatrix A = B;
if (edge_len_weighted){
sm = SparseStressMajorizationSmoother_new(A, dim, lambda, *x, WEIGHTING_SCHEME_SQR_DIST, TRUE);/* do not under weight the long distances */
- //sm = SparseStressMajorizationSmoother_new(A, dim, lambda, *x, WEIGHTING_SCHEME_INV_DIST, TRUE);/* do not under weight the long distances */
} else {
sm = SparseStressMajorizationSmoother_new(A, dim, lambda, *x, WEIGHTING_SCHEME_NONE, TRUE);/* weight the long distances */
}
RETURN:
if (A != B) SparseMatrix_delete(A);
-
}
-
#ifdef GVIEWER
#include <gviewer.h>
#include <get_ps.h>
argvv = malloc(sizeof(char*)*argcc);
argvv[0] = malloc(sizeof(char));
argvv[0][0] = '1';
- // gviewer_init(&argcc, argvv, 0.1, 20, 60, 2*1010, 2*770, A, dim, *x, &(data), stress_model_gv);
gviewer_set_edge_color_scheme(COLOR_SCHEME_NO);
gviewer_toggle_bgcolor();
gviewer_init(&argcc, argvv, 0.1, 20, 60, 720, 720, A, dim, *x, &(data), stress_model_gv);
stress_model_core(dim, D, x, edge_len_weighted, maxit_sm, tol, flag);
}
#endif
-