/dports/misc/vxl/vxl-3.3.2/contrib/rpl/rgrl/ |
H A D | rgrl_est_homography2d.cxx | 29 std::vector< double > wgts; in estimate() local 41 A( 2*i, 6 ) = wgts[i] * -1 * norm_from_pts[i][0] * norm_to_pts[i][0]; in estimate() 42 A( 2*i, 7 ) = wgts[i] * -1 * norm_from_pts[i][1] * norm_to_pts[i][0]; in estimate() 43 A( 2*i, 8 ) = wgts[i] * -1 * norm_from_pts[i][2] * norm_to_pts[i][0]; in estimate() 44 A( 2*i+1, 6 ) = wgts[i] * -1 * norm_from_pts[i][0] * norm_to_pts[i][1]; in estimate() 45 A( 2*i+1, 7 ) = wgts[i] * -1 * norm_from_pts[i][1] * norm_to_pts[i][1]; in estimate() 78 estimate_covariance( norm_from_pts, norm_to_pts, wgts, in estimate() 107 std::vector< double >& wgts, in normalize() 206 wgts.push_back( ti.cumulative_weight() ); in normalize() 218 const std::vector< double >& wgts, in estimate_covariance() [all …]
|
H A D | rgrl_est_homography2d.h | 53 std::vector< double >& wgts, 60 const std::vector< double >& wgts,
|
/dports/misc/vxl/vxl-3.3.2/contrib/rpl/rgrl/tests/ |
H A D | test_match_set.cxx | 55 std::vector<double> const& wgts ) in test_one_to_one_contents() argument 85 } else if ( fi.begin().geometric_weight() != wgts[idx] ) { in test_one_to_one_contents() 88 } else if ( fi.begin().signature_weight() != wgts[idx] ) { in test_one_to_one_contents() 91 } else if ( fi.begin().cumulative_weight() != wgts[idx] ) { in test_one_to_one_contents() 112 std::vector< double > wgts; in test_one_to_one_correspondence() local 119 wgts. push_back( random_count( 10 ) ); in test_one_to_one_correspondence() 127 ms->add_feature_and_match( from_pts[i], nullptr, to_pts[i], wgts[i] ); in test_one_to_one_correspondence() 133 from_pts, to_pts, wgts ), true); in test_one_to_one_correspondence() 137 from_pts, to_pts, wgts ), true); in test_one_to_one_correspondence()
|
/dports/misc/vxl/vxl-3.3.2/contrib/rpl/rrel/ |
H A D | rrel_wgted_ran_sam_search.cxx | 29 const std::vector<double>& wgts = problem->similarity_weights(); in estimate() local 30 if ( !wgts.empty() ) in estimate() 33 assert( wgts.size() == problem->num_samples() ); in estimate() 37 for (double wgt : wgts) in estimate() 43 intervals_.resize( wgts.size() ); in estimate() 45 for ( unsigned i=0; i<wgts.size(); ++i ) { in estimate() 48 next_lower = current_lower+wgts[i]/sum_wgt; in estimate()
|
H A D | rrel_homography2d_est.cxx | 233 const std::vector< double >& wgts, in normalize() 246 center[0] += wgts[i] * pts[i][0] / pts[i][2]; in normalize() 247 center[1] += wgts[i] * pts[i][1] / pts[i][2]; in normalize() 248 sum_wgt += wgts[i]; in normalize() 254 avg_distance += wgts[i] * std::sqrt( vnl_math::sqr( pts[i][0] / pts[i][2] - center[0] ) + in normalize()
|
H A D | rrel_estimation_problem.h | 144 void set_similarity_weights( const std::vector<double>& wgts ) in set_similarity_weights() argument 145 { similarity_weights_ = wgts; } in set_similarity_weights()
|
H A D | rrel_homography2d_est.h | 98 const std::vector< double >& wgts,
|
/dports/misc/vxl/vxl-3.3.2/contrib/rpl/rrel/tests/ |
H A D | test_orthogonal_regression.cxx | 122 std::vector<double> wgts( num_pts ); in test_orthogonal_regression() local 126 wgts[0] = 0; wgts[1] = 1; wgts[2] = 0; wgts[3] = 0; in test_orthogonal_regression() 127 wgts[4] = 0; wgts[5] = 0; wgts[6] = 0; in test_orthogonal_regression() 128 …hted_least_squares_fit (singular)" , !lr1->weighted_least_squares_fit( par, cofact, &wgts ), true); in test_orthogonal_regression()
|
H A D | test_linear_reg.cxx | 129 std::vector<double> wgts( num_pts ); in test_linear_reg() local 132 wgts[0] = 0; wgts[1] = 1; wgts[2] = 2; wgts[3] = 0; in test_linear_reg() 133 wgts[4] = 1; wgts[5] = 0; wgts[6] = 0; in test_linear_reg() 134 …ghted_least_squares_fit (singular)", !lr3->weighted_least_squares_fit( par, cofact, &wgts ), true); in test_linear_reg()
|
H A D | test_homography2d_est.cxx | 183 std::vector <double> wgts(n,0.0); in test_homography2d_est() local 185 wgts[i] = 1.0; in test_homography2d_est() 186 bool ret = homo_est.weighted_least_squares_fit(param, cofact, &wgts); in test_homography2d_est()
|
/dports/math/chaco/Chaco-2.2/code/misc/ |
H A D | simple_part.c | 27 int wgts[MAXSETS]; /* weight assigned to given set so far */ local 41 for (j=0; j<nsets; j++) wgts[j] = 0; 45 ratio = wgts[j] / goal[j]; 52 wgts[set] += graph[i]->vwgt; 55 wgts[set]++;
|
/dports/biology/fasta/fasta/ |
H A D | lx_align3.c | 91 int *x, *y, *ex, *ey, ld, **wgts, lp; in local_align() 122 wt = &wgts[pro[i]][0]; 222 int x, y, ex, ey, **wgts; 240 wt = &wgts[pro[i+x-1]][0]; 270 int x, y, ex, ey, *cur_st, **wgts; 289 wt = &wgts[pro[i+x]][0]; e2 = last[ey-y+1].C; 360 int x, y, ex, ey, **wgts; in global() 419 x1 = global(x, y, m, m1, wgts, dnap, pro,N1,0); 424 x1 = global(x, y, m-1, m1, wgts, dnap, pro,N1,1); 467 int x, y, ex, ey, **wgts; in small_global() [all …]
|
/dports/graphics/py-geomdl/geomdl-5.2.10/geomdl/ |
H A D | _operations.py | 327 wgts = [] # new weights array 339 wgts += list(arg.weights) 342 wgts += tmp_w 349 wgts += list(arg.weights[1:]) 352 wgts += tmp_w 362 return kv, cpts, wgts, kv_connected
|
/dports/graphics/graphviz/graphviz-2.44.1/lib/mingle/ |
H A D | edge_bundling.c | 61 e->wgts = NULL; in pedge_new() 77 e->wgts = MALLOC(sizeof(real)*(np - 1)); in pedge_wgt_new() 258 if (edge->wgts){ in pedge_export_gv() 260 maxwgt = MAX(maxwgt, edge->wgts[j]); in pedge_export_gv() 303 if (edge->wgts){ in pedge_export_gv() 307 fprintf(fp, "%f", edge->wgts[j]); in pedge_export_gv() 328 t = edge->wgts[j]/maxwgt; in pedge_export_gv() 418 if (e->wgts) e->wgts = REALLOC(e->wgts, (n-1)*sizeof(real)); in pedge_realloc() 427 if (!(e->wgts)){ in pedge_wgts_realloc() 428 e->wgts = REALLOC(e->wgts, (n-1)*sizeof(real)); in pedge_wgts_realloc() [all …]
|
H A D | agglomerative_bundling.c | 636 e->wgts = REALLOC(e->wgts, sizeof(real)*4); in agglomerative_ink_bundling_internal() 644 for (k = 0; k < 3; k++) e->wgts[k] = e->wgt; in agglomerative_ink_bundling_internal() 650 e->wgts[1] = wgt_all; in agglomerative_ink_bundling_internal() 720 if (midedge->wgts){ in agglomerative_ink_bundling_internal() 721 e->wgts[(k+1)] = midedge->wgts[k]; in agglomerative_ink_bundling_internal() 723 e->wgts[(k+1)] = midedge->wgt; in agglomerative_ink_bundling_internal() 727 e->wgts[npp - 2] = e->wgts[0];/* the last interval take from the 1st interval */ in agglomerative_ink_bundling_internal()
|
H A D | edge_bundling.h | 22 …real *wgts;/* number of original edges each section represnet. Dimension npoint - 1. This only app… member
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bseg/bapl/ |
H A D | bapl_affine2d_est.cxx | 179 const std::vector< double >& wgts, in normalize() 193 center[0] += wgts[i] * pts[i][0]; in normalize() 194 center[1] += wgts[i] * pts[i][1]; in normalize() 195 sum_wgt += wgts[i]; in normalize() 201 avg_distance += wgts[i] * std::sqrt( vnl_math::sqr( pts[i][0] - center[0] ) + in normalize()
|
H A D | bapl_affine2d_est.h | 70 const std::vector< double >& wgts,
|
/dports/math/gismo/gismo-21.12.0/src/gsNurbs/ |
H A D | gsTensorNurbs.h | 101 gsMatrix<T> tcoefs, gsMatrix<T> wgts) in gsTensorNurbs() argument 115 this->m_basis = new Basis(tbasis , give(wgts)) ; in gsTensorNurbs() 125 gsMatrix<T> wgts ) in gsTensorNurbs() argument 139 this->m_basis = new Basis(tbasis, give(wgts)); in gsTensorNurbs() 173 gsMatrix<T> wgts ) in gsTensorNurbs() argument 190 this->m_basis = new Basis(tbasis, give(wgts)); in gsTensorNurbs()
|
/dports/science/axom/axom-0.6.1/src/axom/mint/tests/ |
H A D | mint_fem_single_fe.cpp | 727 double interp(const double* f, const double* wgts, int N) in interp() argument 730 EXPECT_TRUE(wgts != nullptr); in interp() 735 finterp += wgts[i] * f[i]; in interp() 768 double* wgts = new double[nnodes]; in check_interp() local 787 fe->evaluateShapeFunctions(xi, wgts); in check_interp() 788 double finterp = interp(f, wgts, ndofs); in check_interp() 797 fe->evaluateShapeFunctions(fe->getReferenceCenter(), wgts); in check_interp() 798 double finterp = interp(f, wgts, nnodes); in check_interp() 807 delete[] wgts; in check_interp()
|
/dports/graphics/graphviz/graphviz-2.44.1/cmd/mingle/ |
H A D | minglemain.c | 298 if ((j < edge->npoints-1) && (edge->wgts)) { in genBundleInfo() 299 sprintf(buf, ";%.03f", edge->wgts[j]); in genBundleInfo() 324 t = edge->wgts[j]/maxwgt; in genBundleColors() 355 if (edge->wgts){ in export_dot() 357 maxwgt = MAX(maxwgt, edge->wgts[j]); in export_dot() 373 if (edge->wgts) { in export_dot()
|
/dports/science/py-OpenMC/openmc-0.12.2/openmc/ |
H A D | material.py | 1055 wgts = fracs * amms / mass_dens 1056 wgts /= np.sum(wgts) 1058 wgts = fracs / mass_dens 1059 wgts /= np.sum(wgts) 1061 wgts = fracs 1073 for mat, wgt in zip(materials, wgts):
|
/dports/science/openmc/openmc-0.12.2/openmc/ |
H A D | material.py | 1055 wgts = fracs * amms / mass_dens 1056 wgts /= np.sum(wgts) 1058 wgts = fracs / mass_dens 1059 wgts /= np.sum(wgts) 1061 wgts = fracs 1073 for mat, wgt in zip(materials, wgts):
|
/dports/math/R-cran-mvtnorm/mvtnorm/R/ |
H A D | noisy-root.R | 3 wgts <- function(typred, ttarg){ function 103 weights <- wgts(tycurpred, ttarg)
|
/dports/science/cdo/cdo-2.0.0/src/ |
H A D | interpol.cc | 253 double wgts[4]; in intlinarr2() local 254 … wgts[0] = (x[i] - xm[ii]) * (y[i] - ym[jj]) / ((xm[ii - 1] - xm[ii]) * (ym[jj - 1] - ym[jj])); in intlinarr2() 255 … wgts[1] = (x[i] - xm[ii - 1]) * (y[i] - ym[jj]) / ((xm[ii] - xm[ii - 1]) * (ym[jj - 1] - ym[jj])); in intlinarr2() 256 …wgts[3] = (x[i] - xm[ii - 1]) * (y[i] - ym[jj - 1]) / ((xm[ii] - xm[ii - 1]) * (ym[jj] - ym[jj - 1… in intlinarr2() 257 … wgts[2] = (x[i] - xm[ii]) * (y[i] - ym[jj - 1]) / ((xm[ii - 1] - xm[ii]) * (ym[jj] - ym[jj - 1])); in intlinarr2() 263 for (int n = 0; n < 4; ++n) fwsum += varray1[src_add[n]] * wgts[n]; in intlinarr2()
|