similar to: Finding the closest match?

Displaying 20 results from an estimated 20000 matches similar to: "Finding the closest match?"

2008 Aug 26
2
String search: Return "closest" match
Hi, I have to match names where names can be recorded with errors or additions. Now I am searching for a string search function which returns always the "closest" match. E.g. searching for "Washington" it should return only Washington but not Washington, D.C. But it also could be that the list contains only "Hamburg" but the record I am searching for is
2002 Mar 28
3
Vectorizing closest match
If anyone has a very fast vectorized method for doing the following I would appreciate some help. I want to avoid outer() to limit memory problems for very large n. Let x = real vector of length n y = real vector of length n w = real vector of length m, m typically less than n/2 but can be > n z = real vector of length m For w[i], i=1,,,m, find the value of x that is closest to w[i]. In
2010 May 01
2
closest match in R to c-like struct?
Hello, What would be in R the closest match to a c-struct? e.g. data.frame requires all elements to be of the same length ... or is there a way to circumvent this? TIA, Best regards, Giovanni
2006 Aug 12
7
Collection assignment to a has_many :through
I''m working on a simple photo gallery in rails, it seems to be a good project for a newbie. I have photos and categories, many-to-many association. It worked well with HABTM. Then I decided that it would be good to be able to change order of the photos so that thumbnail pages would look less chaotic. So I created a Layout model which is a join model (or whatever it is called) that
2009 Mar 22
4
Selecting closest values
Hi I have a table with ID (1 to 183) and Location (144 to -22). My problem is that I want to select the 10 ID's that are closest in Location to ID 1, ID 2 and so on. Also, some ID have the same Location. Say, if 11 ID's are closest to ID 100 I want to randomly choose one of the ID's to select 10 ID's total. Thank you -- View this message in context:
2008 Jul 09
4
Find the closest value in a list or matrix
I have a long list of numbers [3.4,5.4,3.67,....], and I basically want to find the index of the number closest to this number that I have, let's say 5.43. How would I do this without writing a for loop (I have to do this many times for several lists)? Is there a "lookup" function in R? Thanks! -- View this message in context:
2013 Apr 11
2
Encircle the closest points
Dear R-user, For the "matplot" of the following data drawn by >matplot(t, pch=1) structure(c(2372L, 2494L, 2170L, 2238L, 1918L, 715L, 1573L, 2437L, 2481L, 1881L, 440L, 2165L, 343L, 121L, 597L, 1163L, 1459L, 2093L, 1454L, 1761L, 1872L, 174L, 2040L, 552L, 1403L, 6381L, 1649L, 4136L, 4415L, 10650L, 12111L, 4397L, 9593L, 7040L, 3888L, 8340L, 11475L, 11413L, 3985L, 1077L, 7723L, 1392L,
2017 Jun 04
3
CentOS 7 install: closest mirror not supported?
Hi, Do CentOS 7 installs not automatically use a closest mirror for installing like Fedora does, or is that due to the way I'm starting the install (virt-install)? Background: I'm trying to find the best way to do installs using basic local media (network install, but *without* the need to download the squashfs.img for every install) but without a full local mirror. On Fedora (25), it
2010 Jan 17
3
enty-wise closest element
Dear R-users, i have a simple problem maybe, but i don't see the solution. i want to find the entry-wise closest element of an vector compared with another. ind1<-c(1,4,10) ind2<-c(3,5,11) for (i in length(ind2):1) { print(which.min(abs(ind1-ind2[i]))) } for ind2[3] it should be ind1[3] 10, for ind2[2] it should be ind1[2] 4 and for ind2[1] it should be ind1[1] 1. but with the
2009 Jan 22
2
how to make a soundex method in
I am working with a table in my database where I am looking through every record to see if it matches with every other record in that same table to see if its a soundex match or not I want to define a method where I can call it as a true or false statement like: onerecord.soundex(otherrecord) = true or false and be able to run the code below based on if its true or false -- Posted via
2008 Aug 27
3
Closest value
Hello, I have this command: x.axis <- seq(from=0.5, to=4.5, length.out=13112) How can I which of the x.axis components is the closest to a given value, for example 3.2? Best, Dani -- Daniel Valverde Saub? Grup de Biologia Molecular de Llevats Facultat de Veterin?ria de la Universitat Aut?noma de Barcelona Edifici V, Campus UAB 08193 Cerdanyola del Vall?s- SPAIN Centro de Investigaci?n
2004 Feb 13
3
Re: Re: Find Closest 5 Cases?
Art (and group), I'm doing this as a form of missing value analysis. Approximately 30% of the cases are missing data for one variable. To impute values for those cases, I'd like to match those cases that are missing the variable to all other cases and then take an average of those to infill. I realize there are many methods for imputing data. I'm not well versed on any in
2014 Dec 30
2
Adding support for phonetic correction via soundex algorithms
Hello! I'm Shubham Sharma, a 3rd year Information Systems student at BITS Pilani, and I'd like to explore the possibilities of a GSOC Project that would aim at improving the tolerant retrieval capabilities via *phonetic* correction(: misspellings that arise because the user types a query that sounds like the target term. ) I did find spelling correction via edit distance in
2008 Apr 18
3
Closest Fedora to CentOS 4?
Hi, I want to take a SRPM that is available for various versions of Fedora and rebuild it on a CentOS 4 system. Which release of Fedora is the closest to CentOS 4? In other words, which would be the best FC to take the SRPM for? Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
2007 Jan 06
2
can samba figure out the "closest" domain controller in ADS mode?
I'v got working Samba ADS servers, but "net ads info" shows most of them are associated with Win2K3 domain controllers that are in different sites than the ones the Samba servers are in (we have a large WAN with DCs in every site). I'm not configuring "password server" as I want Samba to be more fault tolerant than pointing it at one DC - when there are many to choose
2009 Nov 25
1
implementing soundex algorithm
how can i implement soundex algorithm in rails app?? my database is mysql I want to search a particular table''s data using soundex -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send
2004 Feb 13
3
Calculate Closest 5 Cases?
I've only begun investigating R as a substitute for SPSS. I have a need to identify for each CASE the closest (or most similar) 5 other CASES (not including itself as it is automatically the closest). I have a fairly large matrix (50000 cases by 50 vars). In SPSS, I can use Correlate > Distances to generate a matrix of similarity, but only on a small sample. The entire matrix can not
2013 Jun 18
2
find closest value in a vector based on another vector values
Dear All, would you please provide your thoughts on the following: let us say I have: a <-c(1,5,8,15,32,69) b <-c(8.5,33) and I would like to extract from "a" the two values that are closest to the values in "b", where the length of this vectors may change but b will allways be shorter than "a". So at the end based on this example I should have the result
2006 Aug 02
7
ActiveRecord does not close database connections?
I have an application that creates quite a few threads. I keep getting the "mysql too many connections" error. ActiveRecord does not close the connection once a thread had died out. To make things worse mysql has a wait_timeout variable that would basically kill off these connections for me, but there is a bug and I can not change the value of it. I have tried at least 10 different
2009 Oct 10
2
Matching Dates Closest without going over
Hi, I have 2 date vectors d1 and d2. d1 <- structure(c(14526, 14495, 14464, 14433, 14402, 14371, 14340, 14309, 14278, 14247, 14216, 14185), class = "Date") d2 <- structure(c(14526, 14509, 14488, 14466, 14453, 14441, 14396, 14388, 14343, 14333, 14310, 14281), class = "Date") I would like to create another dataframe with columns d1 and d2, where d1 is the original d1