Lines Matching refs:s1
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];
243 //- Choose a rdm seg [s0,s1], find corresponding [t0,t1],
247 double s1=0.,s0 = ends_tolerance*strokelength+0.0001;//the root finder might miss 0.
254 if (!closed && s1>piece_total_length - ends_tolerance.get_value()*strokelength) break;
261 // pick a new end point (s1 = s0 + strokelength).
262 s1 = s0 + strokelength*(1-strokelength_rdm);
265 if (!closed && s1>piece_total_length-ends_tolerance.get_value()*strokelength){
267 //!!the root solver might miss s1==piece_total_length...
268 if (s1>piece_total_length){s1 = piece_total_length - ends_tolerance*strokelength-0.0001;}
270 if (closed && s1>piece_total_length + s0_initial){
272 if (closed && s1>2*piece_total_length){
273 s1 = 2*piece_total_length - strokeoverlap*(1-strokeoverlap_rdm)*strokelength-0.0001;
276 times = roots(piecelength-s1);
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);