1import{_ as C,bx as w,r,aE as v,bp as _,aP as y,bo as $,e as n,f as l,aJ as e,aX as b,aY as k,aZ as m}from"./B7W8xUR6.js";const A={class:"noise-banner"},E={class:"gaussian-curve"},D={viewBox:"0 0 400 200",width:"400",height:"200"},P=["d"],B={class:"noise-signals"},I={viewBox:"0 0 300 20",width:"600",height:"40"},L=["d"],V={class:"prbs-signal"},N={viewBox:"0 0 700 40",width:"700",height:"40"},R=["d"],S={class:"title"},z={__name:"BannerRauschen",setup(F){w(s=>({"3ff43c77":u.value}));const c=r(["#808080","#A0A0A0","#C0C0C0","#D0D0D0","#E0E0E0"]),u=r("#00ffff"),d=r(null),i=r(0),g=v(()=>{let s="M 0 200";for(let t=0;t<=400;t++){const o=200-Math.exp(-Math.pow(t-200,2)/5e3)*150;s+=` L ${t} ${o}`}return s}),x=v(()=>{let s="M 0 10";for(let t=0;t<=300;t++){const o=10+(Math.random()-.5)*16;s+=` L ${t} ${o}`}return s}),p=v(()=>{let s="M 0 20";const f=[];for(let a=0;a<=700;a++){const h=Math.random()>.5?15:-15,M=(Math.random()-.5)*5;f.push({x:a,y:20+h+M})}return[...f.slice(i.value),...f.slice(0,i.value)].forEach((a,h)=>{h===0?s=`M ${a.x} ${a.y}`:s+=` L ${a.x} ${a.y}`}),s});return _(()=>{c.value=c.value.map(()=>{const s=["#808080","#A0A0A0","#C0C0C0","#D0D0D0","#E0E0E0"];return s[Math.floor(Math.random()*s.length)]})},2e3),_(()=>{const s=["#00ffff","#ff00ff","#ffff00","#ff0000","#00ff00"];u.value=s[Math.floor(Math.random()*s.length)]},2e3),y(()=>{d.value=_(()=>{p.value,i.value=(i.value+1)%700},50)}),$(()=>{d.value&&clearInterval(d.value)}),(s,t)=>(l(),n("div",A,[t[0]||(t[0]=e("div",{class:"noise-pattern"},null,-1)),e("div",E,[(l(),n("svg",D,[e("path",{d:g.value,fill:"none",stroke:"currentColor","stroke-width":"2"},null,8,P)]))]),e("div",B,[(l(),n(b,null,k(5,o=>e("div",{key:o,class:"noise-signal",style:m({animationDuration:`${5+o*2.5}s`,animationDelay:`${o*.2}s`,color:c.value[o-1]})},[(l(),n("svg",I,[e("path",{d:x.value,fill:"none",stroke:"currentColor","stroke-width":"2"},null,8,L)]))],4)),64))]),e("div",V,[(l(),n("svg",N,[e("path",{d:p.value,fill:"none",stroke:"#00ffff","stroke-width":"2"},null,8,R)]))]),t[1]||(t[1]=e("div",{class:"snr-formula"},[e("div",{class:"formula-text"}," SNR = 10 logââ(Pâ/Pâ) ")],-1)),e("div",S,[e("h1",{style:m({color:u.value})},"AWGN Channel",4)])]))}},O=C(z,[["__scopeId","data-v-f6627efb"]]);export{O as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.