Heiner Steven wrote: > Hello, > > Afterwards new numbers are read from somewhere else, and > the program needs to know if the number exists already > or if it is a new, unique one. > If you could accumulate this input into "batches", you could sort this input, and reduce the problem to "walking two ordered lists". BTW your "wording" of the problem is a bit strange, IMHO. I think it has nothing to do with duplicates and could be rephrased as: find if a set of numbers exist in a (larger) set. > > Heiner HTH, AvK

0 |

2/2/2005 10:44:58 AM

I checked the group messages about "%eps" for 20 pages, but didn't come across architecture specific problems. I assumed that the %eps value would be smaller for a 64 bit architecture, but they are the same on my machines - 32 bit intel, AMD64 with an AMD64 Linux OS, and Intel Centrino duo with an AMD64 Linux OS. My main intention in buying the 64 bit machines was to obtain a more accurate computing environment. By the way, how do 32 bit machines handle double precision? Is it virtual, and therefore slower on 32 bit architecture ...? G=FCrsoy GT wrote: > I c...

Hi, Using Python scikit-image's view_as_windows function, one can easily generate the sliding window view of any n-dimensional array (e.g. a 640*480*3 input array with 10*10*3 sliding window will have a 631*471*1*10*10*3 output array) extremely fast. However, several Matlab implementations (nested for-loop memory copying, matrix indexing method like im2col's, etc.) I tried to come up with are not as efficient as I expected. The fastest method I have now is as follows: function X = vaw(X, ws) for i = 1:ndims(X) SI = repmat(1:ws(i), [(size(X,i)-ws(i)+1) 1]) + repmat((0:(siz...

Ah, this looks excellent--thanks very much! I'm going to try just doing these types: mrn* general_class* gender* age_group mrn* specific_class* gender* age_group And then sum across (gender) and (gender age_group) to get the other counts I need. Thanks! -Roy -----Original Message----- From: Peter Crawford [mailto:peter.crawford@BLUEYONDER.CO.UK] Sent: Wednesday, March 22, 2006 6:42 AM To: SAS-L@LISTSERV.UGA.EDU; Pardee, Roy Subject: Re: Efficiently counting things other than records, by several levels of aggregation On Wed, 22 Mar 2006 05:36:09 -0800, Pardee, Roy <pardee.r@...

I have a program from another machine - it uses the module Convert::ASCII::String, originally obtained from CPAN. This module no longer shows up in search.cpan.org. I have a feeling it might still live somewhere on CPAN under the author's name, but I don't know the author. How can I find this old module? Thanks! >>>>> "DF" == David Filmer <usenet@davidfilmer.com> writes: DF> I have a program from another machine - it uses the module DF> Convert::ASCII::String, originally obtained from CPAN. DF> This module no longer shows up in searc...

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); if(m_selectionFlag) { glGetIntegerv(GL_VIEWPORT, viewport); glSelectBuffer(512, buffer);// Tell OpenGL To Use Our Array For Selection (void) glRenderMode(GL_SELECT); glInitNames(); // Initializes The Name Stack glPushName(0); // Push 0 (At Least One Entry) Onto The Stack glMatrixMode(GL_PROJECTION); // Selects The Projection Matrix glPushMatrix(); // Push The Projection Matrix glLoadIdentity(); gluPickMatrix((GLdouble) m_mouseX, (GLdouble) (viewport[3]- m_mouseY), 1.0f, 1.0f, viewport); } glMatrixM...

How to auto count how many number lines in a textfile or matix and then output a number ? "Havard Haneberg" <havard.haneberg@runbox.com> wrote in message <fdvu77$mgu$1@fred.mathworks.com>... > How to auto count how many number lines in a textfile or > matix and then output a number ? For a Matrix 'help size' perhaps Regards Dave Robinson "Havard Haneberg" <havard.haneberg@runbox.com> wrote in message <fdvu77$mgu$1@fred.mathworks.com>... > How to auto count how many number lines in a textfile or > matix and then output a ...

I recently found the following JavaScript code which is supposed to let one find then use the ip address of the person accessing the web page containing the script. <SCRIPT LANGUAGE="JavaScript"> <!-- var ip = '<!--#echo var="REMOTE_ADDR"-->'; function ipval() { document.myform.ipadd.value=ip; } window.onload=ipval // --> </script> There are various forms of this code which displays the ip address in an alert box, in a text box in a form, etc but none work for me. When I access a page with the above in it (along with the appropriate te...

Hi all, can anybody tell me which matlab versions are 64 bits?? Now I have matlab 32 bits installed on my windows 7 64 bits and I am facing problems of memory while handling big sized matrices. I saw that matlab 64 bits provides much less memory constraints regarding matrix size. Thanks for help "Nefissa " <kh2i.kh2i@gmail.com> wrote in message news:im7mfc$j9a$1@fred.mathworks.com... > Hi all, > > can anybody tell me which matlab versions are 64 bits?? > Now I have matlab 32 bits installed on my windows 7 64 bits and I am > facing problems of memory ...

hi, OK. a correction. as Paul showed before, just a boolean expression is not evaluated with short-circuiting. A boolean expression in the IF ... THEN statement is. So, here is an updated one. notice that the data step now runs even faster. On my pc, it ran in less than a second (0.88). cheers, chang /* Paul^s test data */ data meds1; array PRCDR_CD [ 6] $ 4; array DGNS_CD [10] $ 4; do id = 1 to 1e6; do _n_ = 1 to 10; if _n_ <= 6 then prcdr_cd[_n_] = put (ceil (ranuni(1) * 50) + 4700, z4.); dgns_cd[_n_] = put (ceil (ranuni(1) * 50) + 5400, z4...

Suppose I have two inputs which are one nx2 cell matrix A and one mx2 cell matrix B: A={{'a','b'}, {'c'};{'d'},{'e','f'};...}; B={{'a'},{'c'};{'d','g'},{'e'};...} The output I need is similar to ismember(A,B,'rows') . The difference is that as long as the A{i,1} is a member of B{j,1}, I will say A{i,1}=B{j,1}, so the output for above two metric will be tf=[1 1 ...] I have a very long list of A and B, so I want to avoid to use for loop. Thanks in advance! "Wen" wrote in mess...

US-TX-Austin: Algorithms Development Mgr,Expert audio/Video compression; DH (45336357606) ========================================================================================= Position: Algorithms Development Manager Reference: SMC01857 Location: Austin TX Duration: DH Skills: Expert knowledge of audio compression/decompression and video decompression algorithms. Most likely an expert in DSP. Expert knowledge of how to implement such algorithms on embedded systems. Must have experience...

This is an excerpt from the latest version perlfaq3.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 3.19: How can I make my CGI script more efficient? Beyond the normal measures described to make general Perl programs faster or smaller, a CGI program has additional issues. It may be run several times per secon...

hello friends, I've a signal (its length is greater than 30000)what i want is to find the shape of the signal (both positive & negative) is it possible.?? i'm still in the starting stage of matlab i've tried to envelope the signal but what i get is the absolute value of the signal gets enveloped. but what i want is the smooth envelope of both positive & negative cycle of the signal is there any command in matlab to do this??? help me please thanks in advance You may want to try the magnitude of the hilbert transform ...

On Wed, Jun 4, 2008 at 3:17 PM, Nordlund, Dan (DSHS/RDA) < NordlDJ@dshs.wa.gov> wrote: > I have been helping new SAS users in my office get up to speed on accessing > a large SAS data repository. In the process I have discovered that at least > one of the approaches I have used historically is very inefficient (simle > data step merge). I thought I would describe a common type of task we do, > "benchmark" some approaches, and ask for ideas for further improvement. > > We do a lot of analyses of Medicaid claims data for various subpopulations > of Medic...

Can someone kindly suggest effective and efficient algorithms for finding "weak" patterns in a data stream? Are there any open-source implementations of those aglorithms available? By a weak pattern I mean a pattern which may be interspersed with some noise symbols. Let me explain with an example. Consider the data stream 2-4-7-8-0-1-2-3-5-4-6-7-0 This data stream contains the following weak pattern: 2-4-7-0 Intuitively I think that a regular expression matching algorithm may lend itself to adaptation for identifying weak patterns. Thanks, Song In comp.programming Generic Us...

Monthly update via email...thousands of wifi hotspots in our wifi hotspot directory compatible with smartphones, laptops and pdas www.riverwalkmobile.com it's no charge ...

Hi experts, I am stuck with the above. I want to find out the number of days in a particular month. But I could find any command in Matlab.. Try datestr,datenum but not helpful... Is there any way which can solve my problem? i.e No of days for month jan04=31 jan04=31 feb04=29 Thanks for the kind help. pc Might "eomday" be what you're looking for? >> help eomday EOMDAY End of month. D = EOMDAY(Y,M) returns the last day of the month for the given year, Y, and month, M. Algorithm: "Thirty days hath September, ..." See ...

Hello - I have 20 database tables. The table spaces are configured on different disks. I have 10 Million rows of data for each table. (20 files with 10M rows each per table) Load Option #1: --------------- Use Oracle sqlldr (direct path) for all the 20 files with 10M rows of data each, into the respective table. One table is loaded after another. Load Option #2: --------------- Create batches of files, say 10,000 batches each with set of 20 files containng 1000 rows per file. Then I sqlldr the batches of files. One batch is processed after another. The 20 tables are populated in batches of ...

Hello! I'm trying to write an algorithm which can fill an array with all the possible combinations of r out of n, without repetition (maximum combinations = n!/(r!(n-r)!)) However, my mathematical skills are insufficient - does anybody have such an algorithm for sharing? Regards, OMykle all_my_trash@hotmail.com wrote: > Hello! > > I'm trying to write an algorithm which can fill an array with all the > possible combinations of r out of n, without repetition (maximum > combinations = n!/(r!(n-r)!)) > > However, my mathematical skills are insufficient - does an...

Hi, =20 I would like to use an IF condition as follows. =20 IF datatype(variable) =3Dcharacter then <SAS statement>; =20 Else <SAS statement>; =20 Thanks in Advance, Vijaya Kumar D DISCLAIMER: ---------------------------------------------------------------------------= -------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and= intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its= affiliates. Any vi...

Hi all, See my following operations: $ a=( a a f 1 3 b b 3 5 4 4 ) $ b=$(tr ' ' '\n' <<<"${a[@]}" |sort -u |paste -sd' ') $ echo ${b[@]} 1 3 4 5 a b f In this case, I can eliminate the duplicated elements of an array but will disturb the order of the remain elements. If I want to keep the remain emements order appeared in the original array while eliminating the duplicated elements of an array. How to do it? Regards -- ..: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. Op Tuesday 12 May 2015 07:44 CEST schree...

US-TX-Austin: Design Eng., MSEE, Analog circuit design, DSP algorithms, Digital (45309714403) ============================================================================================= Position: Design Eng. Reference: SMC01497 Location: Austin TX Duration: Perm Skills: M.S. in Electrical Engineering required. 3+yrs design experience in mixed signal or digital integrated circuit design. Experience in one of the following: Analog Circuit Design: -A/D Converters -D/A Convert...

I've ported a C implementation of Ukkonen's algorithm for suffix trees to Mathematica. I'm happy to send it along to anyone interested. Cheers, Scott Scott, I would be interested in a copy of the code. Thank you. On 2009.09.07. 8:34, Scott wrote: > I've ported a C implementation of Ukkonen's algorithm for suffix trees > to Mathematica. I'm happy to send it along to anyone interested. > Why don't you make it available on a webpage? Or, if you don't have the possibility to do that, submit to MathSource? http://library.wolfram.com/...

Dear Matlab users, please help me if possible to make this code more efficient. k =1 for i=1:end if B(i) <= 1 A(k)=B(i); k=k+1; end end The point is how to select data from matrix B when B(i) <=1 without using loop. Is it possible at all? Thank you very much for remarks. Irek Try: A=B(B<=1); Regards, Stefan irek wrote: > > > Dear Matlab users, please help me if possible to make this code > more > efficient. > > k =1 > for i=1:end > if B(i) <= 1 > A(k)=B(i); > k=k+1; > end > end > > The point is how to select da...

Hi all, Given that I created a many to one relation between CNAMEs records and an A record, is there a way to get a list of all CNAMEs by querying the A name ? example : bird IN A 192.168.0.5 chicken IN CNAME bird hen IN CNAME bird rooster IN CNAME bird Now I want run some commad, which gives me : # some-command bird chicken hen rooster Thanks much, -ansh In article <bpblh7$2s3o$1@sf1.isc.org>, Anshuman Kanwar <ansh@expertcity.com> wrote: >Hi all, > >Given that I created a many to one relation between ...