Lines Matching full:cosine
27 * As most of our functions use sine or cosine at equal steps,
32 * to calculate sine(wstart + n * wstep) or cosine(wstart + n * wstep)
37 * or looking at just the imaginary sine term, as the cosine follows identically:
44 * cosine generation due to the complex * complex multiply (full rotation).
52 SineGen(double wstart, double wstep, bool cosine = false) {
53 if (cosine) {
83 double mCurrent; // current value of sine/cosine
84 double mPrevious; // previous value of sine/cosine
101 SineGenGen(double outerStart, double outerStep, double innerStep, bool cosine = false)
102 : mSineInnerCur(outerStart, outerStep, cosine), in mSineInnerCur() argument
103 mSineInnerPrev(outerStart-innerStep, outerStep, cosine) in mSineInnerCur()
440 * using cosine generation/multiplication, thereby saving one multiply per inner loop.
445 * We use the basic recursion to incorporate the cosine steps into real sequence x[n]:
468 SineGen cc((start - L) * w, w, true); // cosine
469 SineGen cp(start * w, w, true); // cosine