<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">WET</journal-id><journal-title-group><journal-title>Wireless Engineering and Technology</journal-title></journal-title-group><issn pub-type="epub">2152-2294</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/wet.2012.34033</article-id><article-id pub-id-type="publisher-id">WET-24195</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Energy Detector with Baseband Sampling for Cognitive Radio: Real-Time Implementation
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>ahmood</surname><given-names>A. K. Abdulsattar</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Zahir</surname><given-names>A. Hussein</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Electrical Engineering Department, College of Engineering, University of Baghdad, Baghdad, Iraq</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>mahmood.abdulsattar@googlemail.com(AAKA)</email>;<email>alsulaimawi@yahoo.com(ZAH)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>31</day><month>10</month><year>2012</year></pub-date><volume>03</volume><issue>04</issue><fpage>229</fpage><lpage>239</lpage><history><date date-type="received"><day>June</day>	<month>14th,</month>	<year>2012</year></date><date date-type="rev-recd"><day>July</day>	<month>12th,</month>	<year>2012</year>	</date><date date-type="accepted"><day>July</day>	<month>22nd,</month>	<year>2012</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Cognitive radio (CR) is a technology that provides a promising new way to improve the efficiency of the use of the electromagnetic spectrum that available. Spectrum sensing helps in the detection of spectrum holes (unused channels of the band), and instantly move into vacant channels while avoiding occupied ones. An energy detector with baseband sampling for CR is presented with mathematical analyses for an additive white Gaussian noise (AWGN) channels. A brief overview of the energy detection based spectrum sensing for CR technology is introduced. Practical implementation issues on Texas Instruments TMS320C6713 floating point DSP board are presented. Novelties of this work came from a derivation of probability of detection and probability of false alarm for the baseband energy detector without including the sampling theorems and the associated approximation.
 
</p></abstract><kwd-group><kwd>Real-Time Implementation; Cognitive Radio (CR); Energy Detection</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The limited available spectrum and inefficiency in the use of the spectrum makes it necessary to establish the new communication model to benefit from the existing wireless spectrum professionally.</p><p>Mitola proposed a solution to the spectrum efficiency problem [<xref ref-type="bibr" rid="scirp.24195-ref1">1</xref>], where higher spectrum efficiency can be reached by dynamic spectrum access [2,3]. The concept of cognitive radio (CR) allows detecting the unused spectrum (spectrum holes) of the primary user (PU) in order for the secondary user (SU) to share the spectrum without harmful interference. The accuracy of detection is the most important factor that determines the performance of the CR. Since the concept of CR is still at the stage of being developed, there is no agreement on what kind of wireless technologies to employ for realizing it. Currently, there are three different techniques which are commonly used in signal processing techniques for spectrum sensing [<xref ref-type="bibr" rid="scirp.24195-ref4">4</xref>]: matched filter, cyclostationary feature detection and energy detection.</p><p>In [<xref ref-type="bibr" rid="scirp.24195-ref5">5</xref>], the matched filter also referred to as coherent detector, it can improve detection performance if the primary transmitted signal is deterministic and known a priori. This technique can be applied only when we choose to detect specific signals, and it is very accurate since it maximizes the SNR for the signal.</p><p>In [6,7], a signal is said to be cyclostationary if its mean and autocorrelation are a periodic function. Communication signals may have special statistical features. Feature detection denotes to extracting features from the received signal and performing the detection based on the extracted features. Cyclostationary feature detection can distinguish PU signal from noise, and used at very low signal to noise ratio (SNR) detection by using the information embedded in the PU signal that is not presented in the noise. The main drawback of this method is the complexity of calculation. Also, it must deal with all the frequencies in order to generate the spectral correlation function, which makes it a very large calculation. The benefit of feature detection compared to energy detection is that it typically allows differences among dissimilar signals or waveforms.</p><p>Energy detection (also denoted as noncoherent detection), is the signal detection mechanism using an energy detector (also known as radiometer) to specify the presence or absence of signal in the band. The most often used approaches in the energy detection are based on the Neyman-Pearson (NP) lemma. The NP detection criterion enlarges the probability of detection<img src="7-6801147\53c46b3d-8b63-4242-bf10-cd4c85871c9e.jpg" /> for a given probability of false alarm<img src="7-6801147\6a5c1b4d-c429-4b1b-876c-95dc93148f53.jpg" />.</p><p>It is an essential and a common approach to spectrum sensing since it has moderate computational complexities, and can be implemented in both time domain and frequency domain [8,9]. In [<xref ref-type="bibr" rid="scirp.24195-ref10">10</xref>], to adjust the threshold of detection, energy detector requires knowledge of the power of noise in the band to be sensed. The signal is detected by comparing the output of energy detector with threshold which depends on the noise floor.</p><p>The TMS320C6713 kit was chosen as it provides a properly low cost access into the real-time implementation of energy detection algorithms. This DSP card has the following features: It evaluates 1350 million floating point operations per second (MIPS), a processor running at 225 MHz, programmed by C and assembly languages.</p><p>The paper is organized as follows: Section 2 describes detection techniques. Section 3 lists the main issues of previous works. Section 4 presents the baseband energy detector model. Section 5 drives probability equations for baseband energy detector over AWGN Channel. Section 6 describes how to generate noisy PU signal. Section 7 implemented using a DSP kit. Discussed in Section 8 presented. Finally, in Section 9 the conclusions are mentioned .</p></sec><sec id="s2"><title>2. Detection Techniques</title><p>Fundamental to the theory of detecting the signal in noise is the theory of statistical decision, where the decision-making depends on the hypothesis testing. In binary hypothesis testing, the problem resides in defining a decision rule that indicates which of two hypotheses should be chosen: the null hypothesis (<img src="7-6801147\e1680781-3d2e-48a8-951f-da4e0652020c.jpg" />) or the alternative hypothesis (<img src="7-6801147\ba38d007-f0e9-4639-b73b-8a0a6172e093.jpg" />). If the null and alternative hypotheses are defined in terms of signal(s), hypothesis <img src="7-6801147\ba5c7c6d-4008-4119-b844-9ed515abe068.jpg" /> (signal absent) and hypothesis <img src="7-6801147\496b0d54-1fda-40d8-a214-cc358cc389f9.jpg" /> (signal present).</p><p>In [<xref ref-type="bibr" rid="scirp.24195-ref11">11</xref>], the decision rule can be represented as</p><disp-formula id="scirp.24195-formula135186"><label>(1)</label><graphic position="anchor" xlink:href="7-6801147\9d56ca17-f38b-43cc-940e-71c3f581768b.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\c249798e-a491-4259-bc87-70cd2ce4047c.jpg" /> is the threshold and <img src="7-6801147\6b3276b6-f191-4e36-a343-4b400d3eab7d.jpg" /> is a function that depends on the measurements. If it exceeds the threshold, then <img src="7-6801147\802bd74c-10d2-44a6-ae14-99754d798a80.jpg" /> is selected; otherwise, <img src="7-6801147\5925a8da-d5a8-475a-8c6f-d8b9fc883de4.jpg" />is decided. The aim of the detection theory is, hence, to design the most effective detector by definition<img src="7-6801147\711e35b9-ddc3-43a2-b6b4-16669db62b72.jpg" /> and<img src="7-6801147\f2928d70-1aa6-4fff-87e4-225c9f4b4a12.jpg" />. Let <img src="7-6801147\384ed879-05e8-4ade-8238-e08e1a1aacde.jpg" /> be the observation vector and <img src="7-6801147\b5ef3658-5b8f-4b1f-86cd-2fcc5de8cc68.jpg" /> denote the joint probability density function (PDF) of these <img src="7-6801147\251181f8-6660-4c86-809a-df0c0a684cdc.jpg" /> elements of observing y given that <img src="7-6801147\5fc84f49-82ba-4cc8-b135-9ddb9dc6df8b.jpg" /> was true, is often referred to as the likelihood function of the observation vector y. Thus, we can define the <img src="7-6801147\41f8f8fb-a3db-44f5-9aae-ed5e8362a59e.jpg" /> is the likelihood ratio test (LRT) as</p><disp-formula id="scirp.24195-formula135187"><label>(2)</label><graphic position="anchor" xlink:href="7-6801147\a138eaec-ae39-47a7-965a-4edfdcce0390.jpg"  xlink:type="simple"/></disp-formula><p>In [<xref ref-type="bibr" rid="scirp.24195-ref12">12</xref>], define two main approaches to test the hypothesis: NP and Bayesian. The method used depends on our readiness to merge previous knowledge about the probability of a different hypothesis. If we were able to assign prior probabilities to hypotheses, we can use the approach of Bayesian. However, in most detection problems we cannot say how probable an event is and we have used the NP approach instead.</p><sec id="s2_1"><title>2.1. Bayes Test</title><p>The aim of the Bayes test is to minimize the mean cost or “risk”, whose expression can be evaluated as [<xref ref-type="bibr" rid="scirp.24195-ref13">13</xref>]</p><disp-formula id="scirp.24195-formula135188"><label>(3)</label><graphic position="anchor" xlink:href="7-6801147\a5cbb079-140f-4359-aa2b-d2d168aa20b0.jpg"  xlink:type="simple"/></disp-formula><p>where<img src="7-6801147\a5a84114-eb44-424f-b7f6-ab07f60dab39.jpg" /> is the cost that denotes <img src="7-6801147\817b05ba-4e81-4fc8-b879-f530443dd5c2.jpg" /> is accepted while <img src="7-6801147\522ea186-bcf1-459f-9332-66386cb0ddc9.jpg" /> is true, <img src="7-6801147\9372ab54-0c2b-445d-9bb0-7bfaff87d93d.jpg" />denotes the probability that we accept <img src="7-6801147\f83e37ac-e5ba-4c43-87d8-15f870d7d7b5.jpg" /> when <img src="7-6801147\b131d4da-3e6e-473f-ab0c-e2549f1812d2.jpg" /> is true. From this expression it is possible to derive the decision rule can be expressed as</p><disp-formula id="scirp.24195-formula135189"><label>(4)</label><graphic position="anchor" xlink:href="7-6801147\615b55e9-0a12-4ae4-9d5f-c0b3723e53f6.jpg"  xlink:type="simple"/></disp-formula><p>the probability<img src="7-6801147\28d9b93d-9225-4640-9eaa-4b0ebf9caf30.jpg" />, is called a priori probability of<img src="7-6801147\7c8ef402-7809-4151-8211-b3a6964b3e67.jpg" />. When <img src="7-6801147\f9b61c14-4445-4021-92df-32b14cdcc9e2.jpg" /> the Bayes' test is the maximum aposteriori probability (MAP) test as shown</p><disp-formula id="scirp.24195-formula135190"><label>(5)</label><graphic position="anchor" xlink:href="7-6801147\b657790e-8a4c-42c1-8329-d4929d06b837.jpg"  xlink:type="simple"/></disp-formula><p>Also, when <img src="7-6801147\edd075b1-d6ba-4def-92c3-7cccf71b93ba.jpg" /> the MAP test is called maximum-likelihood (ML) test as shown</p><disp-formula id="scirp.24195-formula135191"><label>(6)</label><graphic position="anchor" xlink:href="7-6801147\acd71c36-7608-47cf-b207-e75385b24afd.jpg"  xlink:type="simple"/></disp-formula></sec><sec id="s2_2"><title>2.2. Neyman-Pearson Test</title><p>In [<xref ref-type="bibr" rid="scirp.24195-ref12">12</xref>], the NP test follows a different philosophy than that of the Bayes test. The NP test can be expressed in terms of the LRT as</p><disp-formula id="scirp.24195-formula135192"><label>(7)</label><graphic position="anchor" xlink:href="7-6801147\a00985e3-32de-418c-a5b3-1813052dba26.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\94744dee-cea3-4e06-b805-a0ece4d632b6.jpg" /> is the Lagrange multiplier and equals to value of detector threshold. <img src="7-6801147\80b914e1-119e-41fa-8551-ed91fb4f7ecd.jpg" />is chosen to satisfy the constraint</p><disp-formula id="scirp.24195-formula135193"><label>(8)</label><graphic position="anchor" xlink:href="7-6801147\b3656284-01a5-4e98-b0cb-d8ba87a3cd11.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\4f98ba81-b877-45ba-9a06-429137f4392a.jpg" /> as defined as the type I error or probability of false alarm, which is the probability that the LRT is larger than the threshold when the observation is composed entirely of noise, <img src="7-6801147\100a3cf6-3b82-45d0-b4d6-3267f7e6e61b.jpg" />level of significance. The detection is performed on the basis of a Constant False Alarm Rate (CFAR) i.e. The NP technique provides a threshold for detection subject to a constant<img src="7-6801147\09ffeb94-10d0-4ce5-ae68-a76cdd007591.jpg" />. The probability of detection can be evaluated as</p><disp-formula id="scirp.24195-formula135194"><label>(9)</label><graphic position="anchor" xlink:href="7-6801147\4454c2f7-3af9-4374-8db9-4ed99422048d.jpg"  xlink:type="simple"/></disp-formula><p>is the probability that the likelihood ratio is larger than the threshold when the observation is composed of the signal of interest and noise.</p><p>If the signal under hypothesis <img src="7-6801147\0b50a935-b76c-449c-b50e-d94459c4bef8.jpg" /> is assumed to be<img src="7-6801147\efee5466-986c-478c-96b1-dbbfead6b704.jpg" />, and under <img src="7-6801147\eab56c64-746a-48e3-b066-8ecb3b03388d.jpg" /> is assumed to be <img src="7-6801147\6fb091a4-7a1f-4326-99d9-4f1b29717932.jpg" /> <img src="7-6801147\cba542db-28a2-48e9-b95b-c8ac1d144e3f.jpg" /> can be evaluated as</p><disp-formula id="scirp.24195-formula135195"><label>(10)</label><graphic position="anchor" xlink:href="7-6801147\124d4f81-6788-41dd-ab41-d096713aa5cf.jpg"  xlink:type="simple"/></disp-formula><p>taking logarithm, and removing all constants that are independent of vector<img src="7-6801147\f30129ee-a730-439f-bf96-815a1b26bda0.jpg" />, and merging with threshold, we obtain <img src="7-6801147\a87fb4e6-1686-47da-bc83-d55b93c8e57b.jpg" /> test as</p><disp-formula id="scirp.24195-formula135196"><label>(11)</label><graphic position="anchor" xlink:href="7-6801147\27d4b5a4-38ac-42a2-8665-fe52a83474a0.jpg"  xlink:type="simple"/></disp-formula><p>Hence, the optimal detector, in the NP sense, is in this case the energy detector.</p><p>A test of the hypotheses which is optimal in the NP and Bayes test can be expressed as</p><disp-formula id="scirp.24195-formula135197"><label>(12)</label><graphic position="anchor" xlink:href="7-6801147\51a61256-ae97-405e-8784-6bc6a74cbfb4.jpg"  xlink:type="simple"/></disp-formula></sec></sec><sec id="s3"><title>3. Previous Works</title><p>Energy detector has been widely used for signal detection due to its simple circuit in practical implementation.</p><p>The most important preliminary work for the general analysis of energy detector was presented in the landmark paper [<xref ref-type="bibr" rid="scirp.24195-ref10">10</xref>], the authors proposed the model as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>In [<xref ref-type="bibr" rid="scirp.24195-ref10">10</xref>], his classic work was based on detection of a deterministic signal in an additive white Gaussian noise (AWGN), and exact noise variance is known a priori. The input signal <img src="7-6801147\9184e24b-2aec-4b0e-9c45-888472f80304.jpg" /> is first passed through an ideal bandpass filter (BPF) with center frequency <img src="7-6801147\dfc45e31-9152-4b82-b79e-1c93ea06c1e0.jpg" /> and bandwidth W, with transfer function</p><disp-formula id="scirp.24195-formula135198"><label>(13)</label><graphic position="anchor" xlink:href="7-6801147\8229e125-77e8-4463-8df5-af7de6f4a98d.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\eb95e427-400b-42d4-bee0-1cbfcc9b4dad.jpg" /> is the one-sided noise power spectral density, this normalizes it found convenient to compute the false alarm and detection probabilities using the related transfer function. After that the signal squared, and integrated in the observation interval T to produce a test statistic, <img src="7-6801147\3b6164e2-e9f6-4edb-80ca-f24fa3412b56.jpg" />is compared to a threshold<img src="7-6801147\42aa3766-62be-4934-8af6-570426fa849f.jpg" />. The receiver makes a decision that the target signal has been detected if and only if the threshold is exceeded.</p><p>In [<xref ref-type="bibr" rid="scirp.24195-ref14">14</xref>], the received signal <img src="7-6801147\9d638e05-c24a-4614-981f-e9c1fc1688d8.jpg" /> of SU under the binary hypotheses testing can be represented as</p><disp-formula id="scirp.24195-formula135199"><label>(14)</label><graphic position="anchor" xlink:href="7-6801147\8d142aa3-52c6-4018-9a27-67478dcc10b2.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\cc8f64e1-e07b-4c74-95b3-5de6bd11a52c.jpg" /> represents the hypothesis corresponding to “no signal transmitted”, and <img src="7-6801147\17859bf5-d447-4388-883c-5c1f9dc3139e.jpg" /> to “signal transmitted”, <img src="7-6801147\5ca4c7b1-64ea-40c0-b63f-5dfe0572833a.jpg" />is the unknown deterministic transmitted signal, and <img src="7-6801147\bb214166-cd65-455c-88a9-6da62ebdbb34.jpg" /> assumed to be an AWGN with zero mean and variance <img src="7-6801147\7b18e383-5e39-415f-be6b-77444ea78cfe.jpg" /> is known a priori. The SNR is denoted as</p><p><img src="7-6801147\34a36f99-90b1-44e6-9ac3-6cec52dba393.jpg" /></p><p>where <img src="7-6801147\7e22be23-c349-4805-aa4f-7f27e9729036.jpg" /> variance of signal and <img src="7-6801147\e0f8c17a-d9b7-48b7-bfc9-f67684f9c46b.jpg" /> variance of noise. By using Shannon’s sampling formula, we can obtain the reconstructed noise signal</p><disp-formula id="scirp.24195-formula135200"><label>(15)</label><graphic position="anchor" xlink:href="7-6801147\f65b3618-cb29-4753-a1f8-9434809db37a.jpg"  xlink:type="simple"/></disp-formula><p>where</p><p><img src="7-6801147\feb5e0ac-8208-45d3-ae5e-740f2e54b4f0.jpg" /></p><p>is the normalized <img src="7-6801147\a196955c-9d8c-454c-a68f-eb6cfc171446.jpg" /> function and</p><p><img src="7-6801147\03312410-e691-498a-a2f4-aae176d812c5.jpg" /></p><p>is the i-th noise sample. The test statistic under hypothesis <img src="7-6801147\003c9c13-baa3-4626-81ea-b26519f42bc6.jpg" /> as follows</p><disp-formula id="scirp.24195-formula135201"><label>(16)</label><graphic position="anchor" xlink:href="7-6801147\a2aec9d7-4000-4979-9886-8958e7601bde.jpg"  xlink:type="simple"/></disp-formula><p>If we take the BPF effect and simplify, the decision rule which is employed by the energy detector can be obtained as</p><disp-formula id="scirp.24195-formula135202"><label>(17)</label><graphic position="anchor" xlink:href="7-6801147\ac2b691a-453e-4ee9-be39-9b55bd3b5505.jpg"  xlink:type="simple"/></disp-formula><p>The same approach can be applied under hypothesis <img src="7-6801147\92a9ae11-30a4-48c6-94a3-9486ece2715b.jpg" /> when the signal <img src="7-6801147\2c9f8100-8744-41cc-b80e-48253afbb92b.jpg" /> is presented, by replacing each <img src="7-6801147\6390202a-4d2e-4227-add4-3762953a94c7.jpg" /> by <img src="7-6801147\c72c4229-88a0-46c7-a889-d101896eb4ad.jpg" /> where</p><p><img src="7-6801147\665ecd3d-50ae-4a7e-9873-583ae6ce7759.jpg" />.</p><p>The test statistic for both cases can be expressed as</p><disp-formula id="scirp.24195-formula135203"><label>(18)</label><graphic position="anchor" xlink:href="7-6801147\15231217-ab30-4d71-b640-90f8cd23e462.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\d389c4e5-cb16-4153-9097-0b9ed1f6c0e0.jpg" /> chi-square distribution with the <img src="7-6801147\43a06d81-2ce2-4ec5-82a5-a711400fd150.jpg" /> degree of freedom (DOF), and <img src="7-6801147\f131a6d4-f8d2-47b0-9dc1-bada21eeb172.jpg" /> noncentral chi-square distribution with the same number of DOF and a noncentrality parameter equal to<img src="7-6801147\b2208ce1-804c-4a7a-a03b-35f972e2859d.jpg" />. The probability of detection and probability of false alarm can be computed if <img src="7-6801147\76c76e19-ac2a-49d0-8cb5-b7322ed385a0.jpg" /> by</p><disp-formula id="scirp.24195-formula135204"><label>(19)</label><graphic position="anchor" xlink:href="7-6801147\78af9193-6d88-458a-a6e0-63654c51dc9f.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.24195-formula135205"><label>(20)</label><graphic position="anchor" xlink:href="7-6801147\91dd086d-ee50-459c-9128-41f6e7941595.jpg"  xlink:type="simple"/></disp-formula><p>In [<xref ref-type="bibr" rid="scirp.24195-ref15">15</xref>], present several classical models of energy detector, which can be used to evaluate the energy detector performance instead of using the accurate results. These models are easily available for theoretical analysis when one takes advantage of the energy detector for spectrum sensing [<xref ref-type="bibr" rid="scirp.24195-ref16">16</xref>].</p><p>In [<xref ref-type="bibr" rid="scirp.24195-ref17">17</xref>], Lehtomaki has done a lot of research work in signal detection based on the ideal energy detector. His main goal was to develop energy based detectors. Different possibilities for setting the detection threshold for a quantized total power energy detector are analyzed.</p><p>Energy detector has discussed the existence of signals with random amplitude and channel fading in [<xref ref-type="bibr" rid="scirp.24195-ref18">18</xref>] and [<xref ref-type="bibr" rid="scirp.24195-ref14">14</xref>]. The average probability of detection over a fading channel also derived.</p><p>The improved performance of the energy detector for random signals corrupted by Gaussian noise is derived. The derivation is based on a simple modification to the conventional energy detector in [10,14,18] by replacing the squaring operation of the signal amplitude with an arbitrary positive power operation [<xref ref-type="bibr" rid="scirp.24195-ref19">19</xref>].</p><disp-formula id="scirp.24195-formula135206"><label>(21)</label><graphic position="anchor" xlink:href="7-6801147\c5b62940-3c4d-4358-8adf-e949f528b6b3.jpg"  xlink:type="simple"/></disp-formula><p>In [<xref ref-type="bibr" rid="scirp.24195-ref20">20</xref>], in order to solve both the interference avoidance and the spectrum efficiency problem, an optimal spectrum sensing framework is based on the maximum a posteriori probability (MAP) energy detection and its decision criterion based on the primary user activities. The PU activities can be assumed as a two state birthdeath process, death rate <img src="7-6801147\a892d8ec-506e-4002-8798-11538150f7df.jpg" /> and birth rate<img src="7-6801147\1a06e9d8-8640-4fa7-9038-81901a5c3f6e.jpg" />. Where each transition follows the Poisson arrival process meaning that the length of ON (Busy) and OFF (Idle) intervals of primary network are exponentially distributed. We can estimate the a posteriori probability as follows</p><disp-formula id="scirp.24195-formula135207"><label>(22)</label><graphic position="anchor" xlink:href="7-6801147\98a6362e-9913-46f0-90f5-4831989651b6.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.24195-formula135208"><label>(23)</label><graphic position="anchor" xlink:href="7-6801147\22335e72-6e89-4798-8484-c8ed7ee2b588.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\79332a9d-8fdb-480c-b667-7f5e1ddc03a9.jpg" /> is the probability of the period used by primary users and <img src="7-6801147\505461be-9002-4ab0-9d72-346dbdba9187.jpg" /> is the probability of the idle period. From the definition of MAP detection, the detection probability <img src="7-6801147\eaa4e3f9-9e39-46f0-ac79-a4eb7f71a780.jpg" /> and false alarm probability <img src="7-6801147\269a8562-46c1-4047-9e67-d512a39640e0.jpg" /> can be expressed as follows</p><disp-formula id="scirp.24195-formula135209"><label>(24)</label><graphic position="anchor" xlink:href="7-6801147\6fa43dec-3590-4ca5-adfe-5d56f54aadd2.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.24195-formula135210"><label>(25)</label><graphic position="anchor" xlink:href="7-6801147\4b3b4475-23e7-482c-bf94-3834f7ce007e.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\e86f6dfe-151f-4556-a9fd-cf4006111d7e.jpg" /> is a decision threshold of MAP detection.</p></sec><sec id="s4"><title>4. Baseband Energy Detector Model</title><p>In practical implementation of the energy detector, transmission and sensing cannot be performed at the same time. Thus, during observation time, all CR users should stop their transmissions. Due to this hardware constraint, CR users should sense the spectrum cyclically with sensing period <img src="7-6801147\a1a83c5e-4d0a-48f3-b0a0-d2ea3fd36828.jpg" /> and transmission time<img src="7-6801147\7324a16c-47b5-4804-b35e-efac05710105.jpg" />, as described in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>A large number of signal processing applications function in real-time systems. Because most signal processing is nowdays implemented with DSP methods, it is suitable for understanding EDs as discrete time (DT) systems. The input signal of the DT system is denoted by a sequence as</p><disp-formula id="scirp.24195-formula135211"><label>(26)</label><graphic position="anchor" xlink:href="7-6801147\6f66998e-1364-4689-b2c0-72a79636943f.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\c8b99204-e32d-4931-8b5e-678b4ca6944b.jpg" /> is analogue continuous time signal that is sampled in order to produce the DT signal<img src="7-6801147\5d4247fc-9005-4d3c-87ac-dd583bd1fba2.jpg" />, the time index n is an integer, and <img src="7-6801147\bd3890a5-4c53-4385-a941-795ca29c583b.jpg" /> is the sampling interval, which is reciprocal to the sampling frequency and is given by</p><disp-formula id="scirp.24195-formula135212"><label>(27)</label><graphic position="anchor" xlink:href="7-6801147\cf78cc14-b5cc-458e-b2c4-7e9e766fcf7b.jpg"  xlink:type="simple"/></disp-formula><p>A system model of energy detector with baseband sampling for CR can be shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>In order to measure the energy of the received signal, the output signal of codec is squared and integrated over</p><p>the sensing interval<img src="7-6801147\81595cd7-0f09-4b11-befe-46a42cb5e711.jpg" />. The sensing interval <img src="7-6801147\bb66a012-59a4-4d4d-a61f-7217380344cd.jpg" /> is usually assumed to be small enough so that the PU signal can span over the whole sensing interval. According to the Nyquist sampling theorem, the minimum sampling rate should be<img src="7-6801147\e6c7c88a-118f-4040-9ea0-a417c5e84ad5.jpg" />, where W is the highest frequency of the original signal, hence, the minimum sample size N collected by the energy detector can be represented as<img src="7-6801147\18e9001c-9536-4705-9123-b12ce219d25e.jpg" />. In real-time <img src="7-6801147\1fc15931-f466-4dcd-a46e-35b4f7d8e127.jpg" /> equal to sampling frequency <img src="7-6801147\729f84f5-bd77-4a75-8524-dc5dfe3e83b3.jpg" /> of the DSP card, hence as sensing time <img src="7-6801147\a2109135-000e-434f-a68a-c96144ef2f11.jpg" /> is chosen such that N is an integer</p><disp-formula id="scirp.24195-formula135213"><label>(28)</label><graphic position="anchor" xlink:href="7-6801147\44583234-ef95-45c3-9c85-a71c32201748.jpg"  xlink:type="simple"/></disp-formula></sec><sec id="s5"><title>5. Baseband Energy Detector over AWGN Channel</title><p>In a binary hypothesis test, the received signal after codec can be given as</p><disp-formula id="scirp.24195-formula135214"><label>(29)</label><graphic position="anchor" xlink:href="7-6801147\56ca4756-558e-4f95-84ec-190a26c6f87c.jpg"  xlink:type="simple"/></disp-formula><p>where N denotes the number of samples collected during the signal sensing period. The test statistic for the energy detector with predetermined threshold <img src="7-6801147\652a672b-7e7f-43b3-bb08-bcc6e3e9f7b8.jpg" /> is defined as follows</p><disp-formula id="scirp.24195-formula135215"><label>(30)</label><graphic position="anchor" xlink:href="7-6801147\3ed68d72-29b4-4b49-b846-8c7aed8dc0f0.jpg"  xlink:type="simple"/></disp-formula><p>When the received signal contains the noise only under <img src="7-6801147\b5b63b05-4872-411d-baf4-2171465b26a2.jpg" /> hypothesis, the test statistic can be written as:</p><disp-formula id="scirp.24195-formula135216"><label>(31)</label><graphic position="anchor" xlink:href="7-6801147\5a633863-4d39-4d11-bfb4-03942e0f7cae.jpg"  xlink:type="simple"/></disp-formula><p>Since V is a square sum of N AWGN with zero mean, i.e.<img src="7-6801147\741cd3e8-fd04-4a66-99a8-9828783e967e.jpg" />, thus the distribution of the test statistic is a chi-square with N degrees of freedom (DOF) <img src="7-6801147\b3e7451f-1a50-49f4-b12e-cea388429121.jpg" />[<xref ref-type="bibr" rid="scirp.24195-ref21">21</xref>], can be evaluated as follows</p><disp-formula id="scirp.24195-formula135217"><label>(32)</label><graphic position="anchor" xlink:href="7-6801147\2935c9e5-9978-4a7e-a074-108c8f9cdf59.jpg"  xlink:type="simple"/></disp-formula><p>where<img src="7-6801147\55b1c3e3-1978-41f9-9fb2-2dfe33d72e09.jpg" />, is an integer, <img src="7-6801147\40f89009-1144-4ed1-b006-470835c60879.jpg" />is the gamma function, which is defined as</p><p><img src="7-6801147\24136e9f-a76a-4e2b-8a5f-efd0c3584afd.jpg" />[<xref ref-type="bibr" rid="scirp.24195-ref22">22</xref>].</p><p>From the definition of false alarm probability, the CR decides in favor of <img src="7-6801147\a2c91c87-5d71-41d0-804f-2f1eb76f7964.jpg" /> while the band is idle, thus, the false alarm probability can be expressed as</p><disp-formula id="scirp.24195-formula135218"><label>(33)</label><graphic position="anchor" xlink:href="7-6801147\054528ae-dcfe-4d6d-b747-ee6ac30865d7.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.24195-formula135219"><label>(34)</label><graphic position="anchor" xlink:href="7-6801147\7be8ec86-a934-4680-8b59-357919c24297.jpg"  xlink:type="simple"/></disp-formula><p>To solve this equation, we must apply some variable conversion for <img src="7-6801147\52f5ce0e-b19e-4716-99ca-9093841b274f.jpg" /> we get</p><disp-formula id="scirp.24195-formula135220"><label>(35)</label><graphic position="anchor" xlink:href="7-6801147\e7e09784-4afa-441b-afbd-755cb1bf403b.jpg"  xlink:type="simple"/></disp-formula><p>(incomplete gamma functionis given by [<xref ref-type="bibr" rid="scirp.24195-ref22">22</xref>] <img src="7-6801147\c2d0e563-2252-4790-a76c-c498c6bb49fd.jpg" />, therefore (35) becomes</p><disp-formula id="scirp.24195-formula135221"><label>(36)</label><graphic position="anchor" xlink:href="7-6801147\35afd761-8e1c-47b4-840b-0c6f473dc1fd.jpg"  xlink:type="simple"/></disp-formula><p>In [23, Equation (2.5), p. 24], the incomplete gamma function can be expressed as</p><disp-formula id="scirp.24195-formula135222"><label>(37)</label><graphic position="anchor" xlink:href="7-6801147\e4c95b8f-5730-4a51-b2e5-b021348a9d04.jpg"  xlink:type="simple"/></disp-formula><p>based on (37), <img src="7-6801147\53690a06-0d7f-4814-863e-38986433ceae.jpg" />can be evaluated as</p><disp-formula id="scirp.24195-formula135223"><label>(38)</label><graphic position="anchor" xlink:href="7-6801147\5e2905a0-1665-4320-a418-c7c1e4af3ae1.jpg"  xlink:type="simple"/></disp-formula><p>The same approach is applied when the signal of PU, <img src="7-6801147\246f611b-2a35-4a96-b4cd-237f240e329b.jpg" />is presented hence, the test statistic under hypothesis <img src="7-6801147\d637916e-f34c-4957-9d35-9d731959b189.jpg" /> becomes</p><disp-formula id="scirp.24195-formula135224"><label>(39)</label><graphic position="anchor" xlink:href="7-6801147\980d94ed-c7f0-40c9-a550-0e40a22cba90.jpg"  xlink:type="simple"/></disp-formula><p>We can observe that V consists of two terms: a fixed (non-random) component <img src="7-6801147\cabaa3fe-9aaf-4bc6-afeb-296dede8096c.jpg" /> and a noise component <img src="7-6801147\776e6861-f685-4c6c-9e18-2a16828d8b10.jpg" /> obey the Gaussian distribution. More specifically, V is a noncentral chi-square distribution with non-central parameter <img src="7-6801147\dd7199c5-8910-4fa9-bf4f-a019427c91b9.jpg" /> and N DOF, <img src="7-6801147\136caacb-efa9-4c7d-99ab-c1f7bbbff936.jpg" />, in particular, the PDFs of V under <img src="7-6801147\2d5ce19c-b586-4893-8f7a-c5840dc52319.jpg" /> hypothesis takes the form [<xref ref-type="bibr" rid="scirp.24195-ref21">21</xref>]</p><disp-formula id="scirp.24195-formula135225"><label>(40)</label><graphic position="anchor" xlink:href="7-6801147\f1cfd54e-0b3e-4561-9077-ca8e675f462d.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\9ec7a3dc-cbd7-45b4-9e14-800c5dcda582.jpg" /> is the n order modified Bessel function. The probability of detection is</p><disp-formula id="scirp.24195-formula135226"><label>(41)</label><graphic position="anchor" xlink:href="7-6801147\2f840724-16d0-4fa5-a75d-b28c90690f81.jpg"  xlink:type="simple"/></disp-formula><p>The <img src="7-6801147\8b793d87-2b7f-4e9a-bffd-386631982fae.jpg" /> can be expressed in term of the generalized Marcum Q-function, which is defined as [<xref ref-type="bibr" rid="scirp.24195-ref21">21</xref>]</p><disp-formula id="scirp.24195-formula135227"><label>(42)</label><graphic position="anchor" xlink:href="7-6801147\bb9fa03c-e401-4250-8f53-d36443c8cd7e.jpg"  xlink:type="simple"/></disp-formula><p>Where m is a nonnegative integer, and <img src="7-6801147\16e3c0da-8e75-48fa-8aa5-e06ea00c9763.jpg" /> and <img src="7-6801147\0b41147f-8c7b-49f8-89e8-6da8180fb444.jpg" /> are nonnegative real numbers. If we change variable of integration (41), v to x, where</p><p><img src="7-6801147\ffb58b02-c2f0-4838-a73e-3a387bd784ab.jpg" />, and let<img src="7-6801147\777269ec-8e2d-4280-b1a7-86451254cc47.jpg" />we obtain</p><disp-formula id="scirp.24195-formula135228"><label>(43)</label><graphic position="anchor" xlink:href="7-6801147\d86a6421-8c21-4246-8cad-35b0fd081a00.jpg"  xlink:type="simple"/></disp-formula><p>If <img src="7-6801147\97694a1e-5cb7-444e-a20b-0687ff4acaef.jpg" /> i.e. <img src="7-6801147\fbf8410a-bc34-4e6b-a3b6-548ebd62fc79.jpg" />the Marcum Q-function is difficult to calculate or to take its inverse, thus, we can use the central limit theorem (CLT), for the large number of sample, we can use the Gaussian distribution to approximate the chi-square distribution, under <img src="7-6801147\6224a183-9fd7-4bb5-b70d-9a6f9d3568ae.jpg" /> hypothesis, and non-central chi-square distribution, under <img src="7-6801147\e0284005-1ffc-4a7f-827b-31ad2568b7da.jpg" /> hypothesis, thus, the CLT can therefore be employed to approximate the test statistic as Gaussian</p><disp-formula id="scirp.24195-formula135229"><label>(44)</label><graphic position="anchor" xlink:href="7-6801147\9f32d0b8-e69e-42b6-9b89-73f68fe55cc8.jpg"  xlink:type="simple"/></disp-formula><p>If only AWGN is considered, <img src="7-6801147\432b90e5-bfc1-4f1c-a7f0-cea7d4c201d5.jpg" />and <img src="7-6801147\4dff4b05-e79a-446e-9a07-c80d2ff00b4b.jpg" /> of energy detector can be derived in terms of the Q function as follows</p><disp-formula id="scirp.24195-formula135230"><label>(45)</label><graphic position="anchor" xlink:href="7-6801147\991ec70b-7190-4437-9786-289ab9843609.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.24195-formula135231"><label>(46)</label><graphic position="anchor" xlink:href="7-6801147\567e7cec-7f82-4657-b551-5a1f406e8377.jpg"  xlink:type="simple"/></disp-formula><p>where the</p><p><img src="7-6801147\59e8c92b-984c-4dac-b163-bf159bfc0d1c.jpg" /></p><p>is standard Q-function [<xref ref-type="bibr" rid="scirp.24195-ref22">22</xref>]. The decision threshold <img src="7-6801147\e997b27c-f184-451c-856a-1fe84bb634ab.jpg" /> is determined by the pdf of the noise only signal, thus, by using (44), we get</p><disp-formula id="scirp.24195-formula135232"><label>(47)</label><graphic position="anchor" xlink:href="7-6801147\52a04720-6e9d-4cd8-9b25-0e6728056080.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="7-6801147\f88550fb-22b3-480d-974e-caf34abf6cee.jpg" /> denote the inverse Q-function [<xref ref-type="bibr" rid="scirp.24195-ref22">22</xref>].</p><p>In [<xref ref-type="bibr" rid="scirp.24195-ref20">20</xref>], <img src="7-6801147\ab6d9f5f-44f6-41e4-8ae2-c768c25558ec.jpg" />should be kept as small and <img src="7-6801147\5106f5ff-cee1-441a-b926-507f0a97e17f.jpg" /> should be large as possible to avoid underutilization of transmission opportunities. Note that from (45) and (47), the <img src="7-6801147\b75ab7f6-5650-4ef9-bdeb-5979a98045e9.jpg" /> and <img src="7-6801147\f4b9478d-9052-4776-a6e3-2793b8ce6bc7.jpg" /> can be set even without the knowledge of the signal power. The curve represents the performance of the energy detector, which is called the receiver operating curve (ROC), for a given <img src="7-6801147\a67dac09-c293-4edb-935c-ba9b3359623d.jpg" /> pair of <img src="7-6801147\7c746789-878d-4fa1-b0b0-f858c8b168f8.jpg" /> and <img src="7-6801147\72d5c4cd-e888-46e7-a03d-91603ac46bf9.jpg" /> representing the point in the ROC. We can plot another curve give an energy detector performance, for a given <img src="7-6801147\3d266943-2e58-4e28-b78c-655b27a666c9.jpg" /> it’s convenient to display the <img src="7-6801147\077b927b-7780-40e8-8de5-1b5457968822.jpg" /> with<img src="7-6801147\d2123d9e-5fba-40df-82f3-1a25fba65a8a.jpg" />. In addition to using the ROC curve for performance comparison, one can also resort to the so-called deflection coefficient [<xref ref-type="bibr" rid="scirp.24195-ref12">12</xref>], especially when the statistical properties of the signal and noise are limited to moments up to a given order. The deflection coefficient is defined as</p><disp-formula id="scirp.24195-formula135233"><label>(48)</label><graphic position="anchor" xlink:href="7-6801147\3446e8a9-9bfc-42a9-9aed-6641cd8fd620.jpg"  xlink:type="simple"/></disp-formula></sec><sec id="s6"><title>6. Generating Received Signal</title><p>The energy detection is used when the CR knows the signal of PU (deterministic) or their probabilities (random). It requires a good model of PU signal and noise is accurately known.</p><p>In the process of implementing an energy detector with DSP processor, often we are stymied by the problem of getting a received noisy signal with required amount of SNR i.e. under<img src="7-6801147\ab7fd9e4-e0ee-45af-afed-89b15a38e317.jpg" />. To obtain an expression for receiving signals, the PU signal is modeled as being deterministic, by definition of SNR, the variance of signal is</p><disp-formula id="scirp.24195-formula135234"><label>(49)</label><graphic position="anchor" xlink:href="7-6801147\b6584ae0-864a-425f-8ab4-21c2776877ec.jpg"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.24195-formula135235"><label>(50)</label><graphic position="anchor" xlink:href="7-6801147\2f37cd6f-ab2a-4735-ab22-589adce130b7.jpg"  xlink:type="simple"/></disp-formula><p>Thus, All we have to do is to scale the signal <img src="7-6801147\201af049-be30-4223-ab89-704db0e5b16a.jpg" /> appropriately, the received signal expressed as</p><disp-formula id="scirp.24195-formula135236"><label>(51)</label><graphic position="anchor" xlink:href="7-6801147\3ced5da9-a153-48b4-b682-29f5fe57d8e7.jpg"  xlink:type="simple"/></disp-formula><p>Also PU signal can be modeled as being random, the received signal takes the form of a zero mean Gaussian process with known variance <img src="7-6801147\bf3c9cf9-888f-4b6d-acb6-07d09302e330.jpg" /></p><p>Most methods for generating white Gaussian noise are based on transformations or operations on white uniform noise. There are several algorithms to generate white uniform noise which is generated by generating a pseudo random number. In this paper, we focus on a particular class of generators suitable for real-time applications. Making choices among generators requires specific criteria. We used two criteria to choose a good generator, are the length of the generation as well as the short implementation period to fit with the real-time environment.</p><p>The most widely used techniques for generating pseudo random number have approximately uniform distribution. Such generators, introduced by D. H. Lehmer in 1951, which is known as the linear congruential method [<xref ref-type="bibr" rid="scirp.24195-ref24">24</xref>]</p><disp-formula id="scirp.24195-formula135237"><label>(52)</label><graphic position="anchor" xlink:href="7-6801147\a83eee34-0561-42b6-aaf6-632a84c3e9e1.jpg"  xlink:type="simple"/></disp-formula><p>m is the nonzero modulus<img src="7-6801147\bc7153c6-7541-4fdc-8833-6345f65a06b1.jpg" />.</p><p>a is a multiplier<img src="7-6801147\b8d5b227-b7cd-4d72-b022-39f794332746.jpg" />.</p><p>c is an additive constant<img src="7-6801147\9562bf02-30f4-49e1-95fb-75769a516c3a.jpg" />, The case of <img src="7-6801147\2d7523b4-a7e4-4019-88ca-4a260ba871dd.jpg" /> is called a mixed-congruential generator while <img src="7-6801147\9f7ef895-2065-4f9e-909f-bf90e86b9198.jpg" /> is referred to as a multiplicative-congruential generator.</p><p><img src="7-6801147\2fa95343-2032-42a2-b4c7-99c25007798e.jpg" />is the starting value, or seed<img src="7-6801147\ad511563-8601-481b-bb36-5818991029ad.jpg" />.</p><p><img src="7-6801147\5a5b7d4c-e5bf-4bd3-b9ca-33109b36162b.jpg" />is the operator means that <img src="7-6801147\9493d52e-d8bc-48fa-906b-9121f43902bf.jpg" /> is the residue from dividing <img src="7-6801147\970a48f4-a99e-4ddd-b88d-2cd7600c139c.jpg" /> by m.</p><p>If <img src="7-6801147\e1028251-b902-4d7b-a602-39d98b531437.jpg" /> and <img src="7-6801147\67dfef54-e146-4e81-b98d-45b32c9c7a15.jpg" /> are integers, then this technique will produce a sequence of integers with each integer in the range 0≤x<sub>n</sub></p><p>In [<xref ref-type="bibr" rid="scirp.24195-ref25">25</xref>], many versions of linear congruential generators set the constant c to zero. The resulting multiplicative congruential generator is</p><disp-formula id="scirp.24195-formula135238"><label>(53)</label><graphic position="anchor" xlink:href="7-6801147\2129c5c2-10af-48d5-a03c-3cafef9fef42.jpg"  xlink:type="simple"/></disp-formula><p>Park and Miller give suitable choices for <img src="7-6801147\65eaba57-00dd-4bab-b8ef-d6f0ca438773.jpg" /> and<img src="7-6801147\b9f12e97-9257-43d9-80d1-9d96932bdcd3.jpg" />, this yields a full period generator. The Park Miller generator was implemented using David G. Carta’s optimization which needs only 32 bit integer math, and no division.</p><p>The last two algorithms generating white uniform noise zero mean and variance equal to 1/12.</p><p>In this implementation, we present white Gaussian noise generator based on the CLT (Sum-of-uniforms) method. Therefore, approximation of a white Gaussian noise with zero mean and unit variance, can be gained by realizing the sum of 12 uniform random variables.</p></sec><sec id="s7"><title>7. Implementation of Energy Detector on TMS320C6713</title><p>A PU transmitter and SU receiver for CR is implemented on a C6713 DSP board. <xref ref-type="fig" rid="fig4">Figure 4</xref> shows the equipment used in this paper.</p><p>From (45-47), the energy detector is strongly depending on knowledge of noise power. Thus, accurate estimation of noise power plays an important role in performance of energy detector. We proposed the auxiliary energy detector connected to primary energy detector, which can be used for the detection process of noise power, give an accurate detection as noise power changes.</p><p>We determined the DSP card cycle numbers of the two algorithms evaluation units to be 392 and 279 respectively, due to this constraint, we are able to fit the algorithm 2 into the signal used under<img src="7-6801147\195b4972-0f36-4d29-80db-68b8a5711857.jpg" />. <xref ref-type="fig" rid="fig5">Figure 5</xref> shows the time domain plot of white Gaussian noise signal with zero mean and unit variance.</p><p>Two scenarios for signal under <img src="7-6801147\a37fec2d-9da4-407a-a4cb-84ad0a125f83.jpg" /> can be implemented, in (51) <img src="7-6801147\f4351f45-b6af-4e23-9ad9-3ab105ca0185.jpg" />isa (deterministic) sinusoid signal generated using eight points a table lookup method as in <xref ref-type="fig" rid="fig6">Figure 6</xref>, or <img src="7-6801147\433afe85-99d5-42ed-80ed-a1bcce680fd2.jpg" /> is random, thus,</p><p><img src="7-6801147\45537082-0ce3-424c-8b18-4de05c50159f.jpg" /></p><p>as as in <xref ref-type="fig" rid="fig7">Figure 7</xref>.</p><p>We use the following implementation parameters: the PU signal<img src="7-6801147\1fcaf30d-62e8-48c1-8eec-a89b4bf70559.jpg" />, <img src="7-6801147\9d86ed05-9c6b-4856-8cf6-fea7505fc845.jpg" />, <img src="7-6801147\dff88854-7b99-44d4-a4c0-240b1a03cb1d.jpg" />and assume<img src="7-6801147\7b6575ec-90ef-4f46-85a2-9a3d3d0d85cf.jpg" />. The C6713 development board we used has sampling frequencies 8, 16, 32, 44, 1, 48 and <img src="7-6801147\4505a98e-c300-4f95-98a0-b0bd371f8509.jpg" /> are supported, <img src="7-6801147\d786dca6-6bb3-4ce8-981c-93531ecd2f80.jpg" />, we select<img src="7-6801147\b063d106-08ec-4c84-ac69-2c6fc5253e27.jpg" />, and <img src="7-6801147\a77b053c-f452-488f-940e-c11fb8a0b8e4.jpg" /></p><p>Since we set the<img src="7-6801147\5ee7e42f-c546-421b-9126-0fdaa4844e14.jpg" />, this is to say that we observe test statistic under hypothesis <img src="7-6801147\ddc07fe1-c588-4543-afe0-b499c2125fb0.jpg" /> for 100 times to yield 99 realizations of detections in theory. We change SNR from –20 dB to 0, and repeat the 100 observations for each to calculate the number of detections. <xref ref-type="fig" rid="fig8">Figure 8</xref> represents 100 observations at –11 dB, <img src="7-6801147\a45b3c37-ad13-4f20-abf0-17898379067e.jpg" />= 96 kHz it has gotten 4 detections.</p><p><xref ref-type="fig" rid="fig9">Figure 9</xref> plots the <img src="7-6801147\597b512d-2b49-49e8-b69b-a7415c77da27.jpg" /> versus SNR. <img src="7-6801147\523c86a4-a34a-4ebd-a40c-c48b1b53dc19.jpg" />can be expressed as [<xref ref-type="bibr" rid="scirp.24195-ref26">26</xref>]</p><disp-formula id="scirp.24195-formula135239"><label>(54)</label><graphic position="anchor" xlink:href="7-6801147\5f54948e-df5d-4199-9c9c-ade19a6ab0b3.jpg"  xlink:type="simple"/></disp-formula><p>we take the F<sub>sa</sub> at four different values 8, 16, 32 and 96 kHz and and its number of samples 80, 160, 320 and 960 respectively. From the figure it is observed that the detection performance improved by increasing SNR and with increase samples point i.e. sampling frequency.</p><p>To ensure that the <img src="7-6801147\bef711d9-79f6-46a0-9929-fb6dab09d92a.jpg" /> is accurately estimated, we will compare the theoretical value and the implementation results. The <img src="7-6801147\2b64e8e0-6f3a-4e70-84dc-04513cc1d711.jpg" /> is calculated using the following formula [<xref ref-type="bibr" rid="scirp.24195-ref26">26</xref>]</p><disp-formula id="scirp.24195-formula135240"><label>(55)</label><graphic position="anchor" xlink:href="7-6801147\034f6bbe-17eb-4f2e-a965-4d76390378f1.jpg"  xlink:type="simple"/></disp-formula><p><xref ref-type="fig" rid="fig1">Figure 1</xref>0 illustrates the values of <img src="7-6801147\e686254c-5ced-4f95-84b2-d062b5444a67.jpg" /> which are calculated for different values of SNRs at <img src="7-6801147\be662bfa-1088-440c-b6e6-20f803f88c64.jpg" />= 96 kHz. As we know that the estimated value of <img src="7-6801147\d9ca7c80-df22-42ed-9b28-9144381d8887.jpg" /> is 0.01, the</p></sec></body><back><ref-list><title>References</title><ref id="scirp.24195-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">I. F. Akyildiz, W.Y. Lee, M. C. Vuran, and S. Mohanty, “Next generationdynamic spectrum access/cognitive radio wireless networks: a survey,” Computer Networks J. (Elsevier), vol. 50,Sept. 2006, pp. 2127–2159. 
doi:10.1016/j.comnet.2006.05.001</mixed-citation></ref><ref id="scirp.24195-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">S. Haykin, “Cognitive radio: brain-empowered wireless communications,”IEEE J. Select. Areas Com., vol. 23, no. 2, Feb. 2005, pp. 201–220. 
doi:10.1109/JSAC.2004.839380</mixed-citation></ref><ref id="scirp.24195-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">D. Cabric, S. M. Mishra, D. Willkomm, R. W. Brodersen, and A. Wolisz,“A cognitive radio approach for usage of virtual unlicensed spectrum,” in Proc. 14th IST Mobile and Wireless Commun. Summit, June 2005.</mixed-citation></ref><ref id="scirp.24195-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">W. Zhang, R. Mallik and K.Letaief, “Optimization of cooperative spectrum sensing with energy detection in cognitive radio networks,” IEEE Trans. Wireless Commun., vol. 8, Dec. 2009, pp.5761-5766.</mixed-citation></ref><ref id="scirp.24195-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">H. P. Zhiquan, Shuguang Cui and A. Sayed, “Collaborative wideband sensing for cognitive radios,” IEEE Signal Processing Magazine, vol. 25, no. 6, Nov. 2008, pp. 60–73. doi:10.1109/MSP.2008.929296</mixed-citation></ref><ref id="scirp.24195-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">D. Cabric, S.M. Mishra and R.W. Brodersen, “Implementation Issues inSpectrum Sensing for Cognitive Radios,” in Proc. Asilomar Conf. on Signals,Syst., and Comput., Pacific Grove, Nov. 2004, pp.772-776.</mixed-citation></ref><ref id="scirp.24195-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">W. A. Gardner, A. Napolitano, and L. Paura, “Cyclostationarity: Half a century of research,” Signal Processing, vol. 86, no. 4, Apr. 2006, pp. 639–697. 
doi:10.1016/j.sigpro.2005.06.016</mixed-citation></ref><ref id="scirp.24195-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">DanijelaCabric, ShridharMubaraq Mishra, and Bobert W. Brodersen, “ImplementationIssues in Spectrum Sensing for Cognitive Radios,”Berkeley Wireless Research Center,University of California, BerkeleyNov. 2004.</mixed-citation></ref><ref id="scirp.24195-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">PrzemystawPawetczak, GeardJ.M.Janssen, and R.Venkatesha Prasad, “PerformanceMeasures ofDynamic Spectrum Access Networks,”IEEE Global Telecomm. Conf. SanFrancisco, California, USA, 2006.</mixed-citation></ref><ref id="scirp.24195-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">H. Urkowitz, “Energy detection of unknown deterministic signals,” Proceedings of the IEEE, vol. 55, no. 4, 1967, pp. 523–531. doi:10.1109/PROC.1967.5573</mixed-citation></ref><ref id="scirp.24195-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">L. L. Scharf, “Statistical Signal Processing: Detection, Estimation and Time Series Analysis,” Addison-Wesley, Reading, 1991.</mixed-citation></ref><ref id="scirp.24195-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">S. M. Kay, “Fundamentals of Statistical Signal Processing: Detection Theory,” NJ: Prentice-Hall, 1st edition, 1998.</mixed-citation></ref><ref id="scirp.24195-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">H. V. Poor, “An Introduction to Signal Detection and Estimation, Springer,” New York, 1994.</mixed-citation></ref><ref id="scirp.24195-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">F. F. Digham, M. S. Alouini, and M. K. Simon, “On the energy detection of unknown signals over fading channels,” Commun., vol. 5, May 2003, pp. 3575-3579.</mixed-citation></ref><ref id="scirp.24195-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">R. F. Mills and G. E. Prescon, “A comparison of various radiometer detection models,”IEEE Transactions on Aerospace and Electronic Systems, vol. 32, no. 1,Jan. 1996, pp. 467-473. doi:10.1109/7.481289</mixed-citation></ref><ref id="scirp.24195-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">S. Ciftci and M. Torlak, “A comparison of energy detectability models for spectrum sensing,”Proc. of IEEE GLOBECOM , 2008, pp. 1-5.</mixed-citation></ref><ref id="scirp.24195-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">J. J. Lehtomaki, “Analysis of energy based signal detection,” A Doctoral Dissertation, University of Oulu, 2005.  http://herkules.oulu.fi/isbn9514279255.</mixed-citation></ref><ref id="scirp.24195-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">V. I. Kostylev, “Energy detection of a signal with random amplitude,” in Proc. ICC 2002, New York, ,May 2002, pp. 1606-1610.</mixed-citation></ref><ref id="scirp.24195-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Y. Chen, "Improved energy detector for random signals in Gaussian noise," IEEE Trans. Wireless Commun., vol. 9,Feb. 2010, pp. 558-563. 
doi:10.1109/TWC.2010.5403535</mixed-citation></ref><ref id="scirp.24195-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Won-YeolLee , I. F. Akyildiz, “Optimal spectrum sensing framework for cognitive radio networks,” IEEE Trans. Wireless Commun., vol.7, Oct. 2008,pp. 3845-3857.</mixed-citation></ref><ref id="scirp.24195-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">J. G. Proakis, “Digital communications,” fourth ed., McGraw-Hill, 2001.</mixed-citation></ref><ref id="scirp.24195-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">I. S. Gradshteyn and I. M. Ryzhik, “Table of Integrals, Series, and Products,” 7th ed. San Diego, CA: Academic, 2007.</mixed-citation></ref><ref id="scirp.24195-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">J. J. Lehtomaki, “The Detection and Correlation Modeling of Rayleigh Distribution Radar Signal,” A Master Dissertation, Air Force Institute of Technology, University of Air, 1992.  
www.dtic.mil/cgi-bin/GetTRDoc?AD=ada256612.</mixed-citation></ref><ref id="scirp.24195-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Press William H., Teukolsky Saul A., VetterlingWilliam T., Flannery Brian P.,“Numerical Recipes in C,” UK: Cambridge University Press, 2002.</mixed-citation></ref><ref id="scirp.24195-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Carta D. ‘Two Fast Implementations of the Minimal Standard Random Number Generator’, Communications of the ACM, vol. 33, no. 1, 1990, pp. 87-88. 
doi:10.1145/76372.76379</mixed-citation></ref><ref id="scirp.24195-ref26"><label>26</label><mixed-citation publication-type="other" xlink:type="simple">http://www.radartutorial.eu/18.explanations/ex10.en.html</mixed-citation></ref></ref-list></back></article>