Okay thanks for the info. If I have for example a signal to noise ratio of 100 decibels to convert it into watts I calculate the following first: 10 ^ (100/10) 10 ^ (10) =10000000000 watts Right? then I take that value and insert it into: Capcity (b/s) = Bandwidth (Hz) * logbase2(1 + S/N) So If I have a capacity of 10 kbps I calculate it as the following: 10=Bandwith * logbase2
Here's another possibility for both regex and SAS function that seems to work, that is assuming that "where STRING starts with '00' or '01' <snip> and from sign #3 and further must not contain only '0'" additionally still wants the all-'0's string regardless. data myds2; input string $char11.; if _n_=1 then re=prxparse("/^(0+|0[01].*[^0].*)$/"); retain re; if prxmatch(re,string
On Thu, 30 Aug 2007 07:09:54 -0700, =?iso-8859-1?q?Rune_Runnest=F8?= <rune@FASTLANE.NO> wrote: So far noone has solved the problem to create MYDS2 correctly. Manuel suggested: data myds2; if _n_ = 1 then re = prxparse('/^([1-9]\d|\d[1-9]).*[1-9]/'); retain re; input string $char11.; if prxmatch(re, string) gt 0 then ok=1; else ok=0; datalines; 00000000000
So far noone has solved the problem to create MYDS2 correctly. Manuel suggested: data myds2; if _n_ = 1 then re = prxparse('/^([1-9]\d|\d[1-9]).*[1-9]/'); retain re; input string $char11.; if prxmatch(re, string) gt 0 then ok=1; else ok=0; datalines; 00000000000 12345678912 01000000000 10000000000 11000000000 00100000000 01100000000 10100000000 11100000000 00000000010