Simple and fast way for generating a harmonic signal
First Claim
1. A method executed in a computing apparatus for generating a time sample of a signal h(t) for sample time t, where
-
( t ) = ∑ k = 1 K A k cos ( k ω o t + ϕ k ) , for a given fundamental frequency ω
o, when the set Ak, k=1, 2, . . . K is given for said fundamental frequency, and the set τ
k, k=1, 2, . . . K is given for said fundamental frequency, where τ
k is related to φ
k through said fundamental frequency, comprising the steps of;
setting index k to 1;
retrieving from memory the value of τ
k corresponding to index k;
developing a number corresponding to [tk−
τ
k]modT where T is related to said fundamental frequency;
employing said number to develop a cosine sample at said fundamental frequency;
multiplying said cosine sample by a coefficient Ak corresponding to index k that is retrieved from memory;
accumulating results of said step of multiplying;
while k is less than K−
1, incrementing k and returning to said step of retrieving;
when k is equal to K, assigning results of said accumulating to said h(t).
1 Assignment
0 Petitions
Accused Products
Abstract
A fast and accurate method for generating a sampled version of the signal
is achieved by retrieving from memory a pre-computed phase delay value corresponding to φk for a given fundamental frequency, expressed in numbers of samples, for a running value of the index k, subtracting it from a sample time index, t, that is multiplied by the value of k, and employing the subtraction result, expressed in a modulus related to the fundamental frequency, to retrieve a pre-computed sample value of cosine cos(kωot) for the given fundamental frequency. The retrieved sample is multiplied by a retrieved coefficient Ak corresponding to the value of k and to the given fundamental frequency, and placed in an accumulator. The value of k is incremented, and the process for the sample value corresponding to the value of time sample t is repeated until the process completes for k=K.
6 Citations
10 Claims
-
1. A method executed in a computing apparatus for generating a time sample of a signal h(t) for sample time t, where
-
( t ) = ∑ k = 1 K A k cos ( k ω o t + ϕ k ) , for a given fundamental frequency ω
o, when the set Ak, k=1, 2, . . . K is given for said fundamental frequency, and the set τ
k, k=1, 2, . . . K is given for said fundamental frequency, where τ
k is related to φ
k through said fundamental frequency, comprising the steps of;setting index k to 1;
retrieving from memory the value of τ
k corresponding to index k;
developing a number corresponding to [tk−
τ
k]modT where T is related to said fundamental frequency;
employing said number to develop a cosine sample at said fundamental frequency;
multiplying said cosine sample by a coefficient Ak corresponding to index k that is retrieved from memory;
accumulating results of said step of multiplying;
while k is less than K−
1, incrementing k and returning to said step of retrieving;
when k is equal to K, assigning results of said accumulating to said h(t). - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. Apparatus comprising:
-
a controller for developing an index signal t and an index signal k;
a memory for storing coefficients Ak for a selected fundamental frequency ω
o, responsive to said index signal k;
a memory for storing delay values τ
k for said fundamental frequency ω
o, responsive to said index signal k;
a computing circuit responsive to said index signal t, said index signal k, and to output signal of said memory for storing delay values;
a memory for storing sample values of cosine for said selected fundamental frequency;
a multiplier responsive to output signal of said memory for storing coefficients and to output signal of said memory for storing sample values of cosine; and
an accumulator responsive to said multiplier. - View Dependent Claims (8, 9, 10)
-
Specification