Lines Matching refs:s0
159 //This returns a random perturbation. Notice the domain is [s0,s0+first multiple of period>s1]...
161 LPESketch::computePerturbation (double s0, double s1){
176 unsigned count = unsigned((s1-s0)/strokelength*tremble_frequency)+1;
177 //unsigned count = unsigned((s1-s0)/tremble_frequency)+1;
186 if ( s1-s0 > 1e-2)
187 dB[dim] = -(2*tremble_size-tremble_size.get_value())/(s0-s1)-B[dim]+A[dim];
197 res.setDomain(Interval(s0,s0+count*strokelength/tremble_frequency));
198 //res.setDomain(Interval(s0,s0+count*tremble_frequency));
243 //- Choose a rdm seg [s0,s1], find corresponding [t0,t1],
246 // pick a point where to start the stroke (s0 = dist from start).
247 double s1=0.,s0 = ends_tolerance*strokelength+0.0001;//the root finder might miss 0.
249 double s0_initial = s0;
255 if ( closed && s0>piece_total_length + s0_initial) break;
258 times = roots(piecelength-s0);
261 // pick a new end point (s1 = s0 + strokelength).
262 s1 = s0 + strokelength*(1-strokelength_rdm);
281 Piecewise<D2<SBasis> > pwperturb = computePerturbation(s0-0.01,s1+0.01);
286 //step points: s0 = s1 - overlap.
288 s0 = s1 - strokeoverlap*(1-strokeoverlap_rdm)*(s1-s0);